Skip to content

Commit

Permalink
Added usage documentation on how to pass general ES query parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelkiessling committed Jan 31, 2018
1 parent dc5e6bf commit 0935407
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/usage.md
Expand Up @@ -46,6 +46,15 @@ $options = [
$pagination = $paginator->paginate($results, $page, 10, $options);
```

When searching with a finder, parameters can be passed which influence the Elasticsearch query in general.

For example, the `search_type` parameter (see [the Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-type.html))
can be set as follows:

```php
$results = $finder->findHybrid('example.net', null, ['search_type' => 'dfs_query_then_fetch']);
```

Aggregations
-----------------

Expand Down

0 comments on commit 0935407

Please sign in to comment.