elasticsearch/docs/reference/query-dsl
Jim Ferenczi 9d6fac809c Expose splitOnWhitespace in Query String Query (#20965)
This change adds an option called `split_on_whitespace` which prevents the query parser to split free text part on whitespace prior to analysis. Instead the queryparser would parse around only real 'operators'. Default to true.
For instance the query `"foo bar"` would let the analyzer of the targeted field decide how the tokens should be splitted.
Some options are missing in this change but I'd like to add them in a follow up PR in order to be able to simplify the backport in 5.x. The missing options (changes) are:
* A `type` option which similarly to the `multi_match` query defines how the free text should be parsed when multi fields are defined.
* Simple range query with additional tokens like ">100 50" are broken when `split_on_whitespace` is set to false. It should be possible to preserve this syntax and make the parser aware of this special syntax even when `split_on_whitespace` is set to false.
* Since all this options would make the `query_string_query` very similar to a match (multi_match) query we should be able to share the code that produce the final Lucene query.
2016-11-02 10:00:40 +01:00
..
bool-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
boosting-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
common-terms-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
compound-queries.asciidoc Fixed broken xrefs to query-dsl-not-query, which has been removed. 2015-10-20 13:01:37 -07:00
constant-score-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
dis-max-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
exists-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
full-text-queries.asciidoc Update full-text-queries.asciidoc 2016-05-10 12:18:21 +02:00
function-score-query.asciidoc Fixed typos (#20843) 2016-10-10 14:51:47 -06:00
fuzzy-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
geo-bounding-box-query.asciidoc Fix grammar issues in some docs 2016-10-05 11:20:45 -04:00
geo-distance-query.asciidoc Fix grammar issues in some docs 2016-10-05 11:20:45 -04:00
geo-distance-range-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
geo-polygon-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
geo-queries.asciidoc Update docs for LatLonPoint cut over 2016-09-13 12:18:21 -05:00
geo-shape-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
has-child-query.asciidoc docs: add sort workaround 2016-08-26 10:55:42 +02:00
has-parent-query.asciidoc docs: add sort workaround 2016-08-26 10:55:42 +02:00
ids-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
indices-query.asciidoc Fail yaml tests and docs snippets that get unexpected warnings 2016-08-04 15:23:05 -04:00
joining-queries.asciidoc Fix grammar issues in some docs 2016-10-05 11:20:45 -04:00
match-all-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
match-phrase-prefix-query.asciidoc Fix broken link reportedby Twitter user (#20291) 2016-09-01 17:41:44 -07:00
match-phrase-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
match-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
minimum-should-match.asciidoc Query DSL: Remove filter parsers. 2015-05-07 20:14:34 +02:00
mlt-query.asciidoc Fail yaml tests and docs snippets that get unexpected warnings 2016-08-04 15:23:05 -04:00
multi-match-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
multi-term-rewrite.asciidoc Expose Lucene's new TopTermsBlendedFreqScoringRewrite. 2015-07-08 16:01:47 +02:00
nested-query.asciidoc [TEST] wait for yellow after setup doc tests (#18726) 2016-06-03 16:37:28 +02:00
parent-id-query.asciidoc Fail yaml tests and docs snippets that get unexpected warnings 2016-08-04 15:23:05 -04:00
percolate-query.asciidoc [docs] Mark percolator response snippets properly 2016-09-07 09:45:50 -04:00
prefix-query.asciidoc Fail yaml tests and docs snippets that get unexpected warnings 2016-08-04 15:23:05 -04:00
query-string-query.asciidoc Expose splitOnWhitespace in Query String Query (#20965) 2016-11-02 10:00:40 +01:00
query-string-syntax.asciidoc Expose splitOnWhitespace in Query String Query (#20965) 2016-11-02 10:00:40 +01:00
query_filter_context.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
range-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
regexp-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
regexp-syntax.asciidoc Update regexp-syntax.asciidoc (#20973) 2016-10-17 16:32:17 +02:00
script-query.asciidoc cutover some docs to painless 2016-06-27 09:55:16 -04:00
simple-query-string-query.asciidoc Add support for quote_field_suffix to simple_query_string. (#21060) 2016-10-28 09:11:57 +02:00
span-containing-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-field-masking-query.asciidoc Documentation for field_masking_span query (#20395) 2016-09-13 12:27:33 +01:00
span-first-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-multi-term-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-near-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-not-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-or-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-queries.asciidoc Documentation for field_masking_span query (#20395) 2016-09-13 12:27:33 +01:00
span-term-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-within-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
special-queries.asciidoc percolator: renamed percolator query to percolate query 2016-04-20 15:23:54 +02:00
template-query.asciidoc Cleanup ScriptType (#21179) 2016-10-31 13:48:51 -07:00
term-level-queries.asciidoc Update term-level-queries.asciidoc 2016-08-03 10:18:13 -06:00
term-query.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
terms-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
type-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
wildcard-query.asciidoc Update wildcard-query.asciidoc (#20057) 2016-08-18 14:04:46 +02:00