OpenSearch/docs/reference/search
javanna 46c521f7ec Highlighting: nuke XPostingsHighlighter
Our own fork of the lucene PostingsHighlighter is not easy to maintain and doesn't give us any added value at this point. In particular, it was introduced to support the require_field_match option and discrete per value highlighting, used in case one wants to highlight the whole content of a field, but get back one snippet per value. These two features won't
 make it into lucene as they slow things down and shouldn't have been supported from day one on our end probably.

One other customization we had was support for a wider range of queries via custom rewrite etc. (yet another way to slow
 things down), which got added to lucene and works much much better than what we used to do (instead of or rewrite, term
s are pulled out of the automata for multi term queries).

Removing our fork means the following in terms of features:
- dropped support for require_field_match: the postings highlighter will only highlight fields that were queried
- some custom es queries won't be supported anymore, meaning they won't be highlighted. The only one I found up until now is the phrase_prefix. Postings highlighter rewrites against an empty reader to avoid slow operations (like the ones that we were performing with the fork that we are removing here), thus the prefix will not be expanded to any term. What the postings highlighter does instead is pulling the automata out of multi term queries, but this is not supported at the moment with our MultiPhrasePrefixQuery.

Closes #10625
Closes #11077
2015-05-15 20:41:33 +02:00
..
request Highlighting: nuke XPostingsHighlighter 2015-05-15 20:41:33 +02: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