Skip to content

Feature Request: Pass parameters to FacetedSearch #1627

Closed
@MichZipp

Description

@MichZipp

The Search object allows us to pass parameters such as the "request_timeout".
However, we cannot pass parameters to the FacetedSearch. Therefore, large requests will time out quickly.

We could easily integrate this feature by adding the following lines:

class FacetedSearch(object):
    ...
    params = None
    ...

   def search(self):
        s = Search(doc_type=self.doc_types, index=self.index, using=self.using).params(**self.params)
        return s.response_class(FacetedResponse)
   ...

I'm happy to do the changes and submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions