OpenSearch/docs/reference/search
Areek Zillur 7efc43db25 Re-structure collate option in PhraseSuggester to only collate on local shard.
Previously, collate feature would be executed on all shards of an index using the client,
this leads to a deadlock when concurrent collate requests are run from the _search API,
due to the fact that both the external request and internal collate requests use the
same search threadpool.

As phrase suggestions are generated from the terms of the local shard, in most cases the
generated suggestion, which does not yield a hit for the collate query on the local shard
would not yield a hit for collate query on non-local shards.

Instead of using the client for collating suggestions, collate query is executed against
the ContextIndexSearcher. This PR removes the ability to specify a preference for a collate
query, as the collate query is only run on the local shard.

closes #9377
2015-05-14 17:21:53 -04:00
..
request Scripting: Add Multi-Valued Field Methods to Expressions 2015-05-14 08:27:24 -07:00
suggesters Re-structure collate option in PhraseSuggester to only collate on local shard. 2015-05-14 17:21:53 -04:00
count.asciidoc [DOCS] documented missing query_string parameters for count, exists, search & validate_query 2015-05-11 12:58:30 +02:00
exists.asciidoc [DOCS] documented missing query_string parameters for count, exists, search & validate_query 2015-05-11 12:58:30 +02:00
explain.asciidoc Revert "[QUERY] Remove lowercase_expanded_terms and locale options" 2015-03-13 13:51:44 -06:00
facets.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
field-stats.asciidoc Docs: Tidied docs for field-stats 2015-04-26 15:52:02 +02:00
multi-search.asciidoc Search: Remove the `count` search type. 2015-03-31 11:31:49 +02:00
percolate.asciidoc parent/child: Removed the `top_children` query. 2015-05-10 16:30:19 +02:00
request-body.asciidoc Removed reference to search type 'count' 2015-05-04 14:48:40 -07:00
search-shards.asciidoc Docs: Fixed path to search-shards 2014-07-26 15:05:53 +02:00
search-template.asciidoc Docs: Updated version annotations in master 2015-04-09 14:50:11 +02:00
search.asciidoc [DOCS] Corrected syntax error in search curl cmd 2014-11-12 17:21:19 +01:00
suggesters.asciidoc Search: Remove the `count` search type. 2015-03-31 11:31:49 +02:00
uri-request.asciidoc [DOCS] documented missing query_string parameters for count, exists, search & validate_query 2015-05-11 12:58:30 +02:00
validate.asciidoc [DOCS] documented missing query_string parameters for count, exists, search & validate_query 2015-05-11 12:58:30 +02:00