Skip to content

providing search_type #415

@orrchen

Description

@orrchen

Hi,
From the docs for elasticsearch-model searching it's hard to understand how to supply options like search_count. for example if I try the following call:

res = MyModel.search  search_type: 'count' , query:     query, aggs: aggs

where query, and aggs are valid query and aggs object, when trying to access res.response I receive the following error:

nested: SearchParseException[[articles_events][4]: from[-1],size[-1]: Parse Failure [No parser for element [search_type]]]; }]","status":400}

removing search_type: 'count' removes the error as well.

Is there an example of providing the options arg?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions