summaryrefslogtreecommitdiff
path: root/docs/reference/query-dsl
AgeCommit message (Collapse)Author
2016-11-02Add deprecation logging message for 'fuzzy' queryChristoph Büscher
This query is deprecated from 5.0 on. Similar to IndicesQueryBuilder we should log a deprecation warning whenever this query is used. Relates to #15760
2016-11-02Remove `lowercase_expanded_terms` and `locale` from query-parser options. ↵Adrien Grand
(#20208) Lucene 6.2 introduces the new `Analyzer.normalize` API, which allows to apply only character-level normalization such as lowercasing or accent folding, which is exactly what is needed to process queries that operate on partial terms such as `prefix`, `wildcard` or `fuzzy` queries. As a consequence, the `lowercase_expanded_terms` option is not necessary anymore. Furthermore, the `locale` option was only needed in order to know how to perform the lowercasing, so this one can be removed as well. Closes #9978
2016-11-02Expose splitOnWhitespace in `Query String Query` (#20965)Jim Ferenczi
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-10-31Cleanup ScriptType (#21179)Jack Conradson
Refactored ScriptType to clean up some of the variable and method names. Added more documentation. Deprecated the 'in' ParseField in favor of 'stored' to match the indexed scripts being replaced by stored scripts.
2016-10-28Add support for `quote_field_suffix` to `simple_query_string`. (#21060)Adrien Grand
Closes #18641
2016-10-17Update regexp-syntax.asciidoc (#20973)Quinn Shanahan
2016-10-10Fixed typos (#20843)Pascal Borreli
2016-10-05Fix grammar issues in some docsAnatolii Stepaniuk
This commit fixes some grammar issues in various docs. Closes #20751 Closes #20752 Closes #20754 Closes #20755
2016-09-29Fix failing doc tests in feature/seq_noJason Tedor
This commit fixes failing doc tests in feature/seq_no after merging master into this branch.
2016-09-13Update docs for LatLonPoint cut overNicholas Knize
This commit removes documentation for: * geohash cell query * lat_lon parameter * geohash parameter * geohash_precision parameter * geohash_prefix parameter It also updates failing tests that reference these parameters for backcompat.
2016-09-13Documentation for field_masking_span query (#20395)Yevhen Bobrov
* Documentation for field_masking_span query. Fixes #20293 * After review fixes
2016-09-07[docs] Mark percolator response snippets properlyNik Everett
Now the docs tests will catch any errors in the responses. This would have caught the error fixed in https://github.com/elastic/elasticsearch/pull/20351
2016-09-07[docs] Percolator samples are not working. Mapping is wrong.antonisppn
Hi all, I was trying to run the percolate examples, but I figured that because of the "type":"keyword" , the code wasn't working. In the saerch query the "message" : "A new bonsai tree in the office" is a pure string. I changed it to "text".
2016-09-02Docs: clarify calculation of sigma and lambda in function_score (#20267)Greg Ichneumon Brown
- Using log() to indicate natural log can add some confusion when trying to further adjust/tweak scores. Other parts of the API (field_value_factor on this same page) use 'ln' and 'log', so this change should be more consistent - Fixes #20027 - I generated the images using http://latex2png.com/ at a resolution of 150 which seemed to be about the same size as before
2016-09-01Fix broken link reportedby Twitter user (#20291)nrichers
2016-08-31Docs: clarify scale is applied at origin+offest (#20242)Greg Ichneumon Brown
- fixes #19832
2016-08-26docs: add sort workaroundMartijn van Groningen
2016-08-23Add deprecation warnings to docs for geohashNik Everett
Relates to #20126
2016-08-23Deprecate optimize_bbox on geodistance queriesNicholas Knize
Deprecates the optimize_bbox parameter on geodistance queries. This has no longer been needed since version 2.2 because lucene geo distance queries (postings and LatLonPoint) already optimize by bounding box.
2016-08-18Update wildcard-query.asciidoc (#20057)Munish Goyal
Update sentence grammar
2016-08-04Fail yaml tests and docs snippets that get unexpected warningsNik Everett
Adds `warnings` syntax to the yaml test that allows you to expect a `Warning` header that looks like: ``` - do: warnings: - '[index] is deprecated' - quotes are not required because yaml - but this argument is always a list, never a single string - no matter how many warnings you expect get: index: test type: test id: 1 ``` These are accessible from the docs with: ``` // TEST[warning:some warning] ``` This should help to force you to update the docs if you deprecate something. You *must* add the warnings marker to the docs or the build will fail. While you are there you *should* update the docs to add deprecation warnings visible in the rendered results.
2016-08-03Update term-level-queries.asciidocMary
Typo fix
2016-08-01Remove `_missing_` from the docs.Adrien Grand
It is removed in 5.0, see #15153.
2016-07-19Clarify `function_score` docs.Adrien Grand
Closes #18315
2016-06-30[doc] explain avg in function_score better (#19154)Britta Weber
* [doc] explain avg in function_score better
2016-06-27cutover some docs to painlessRobert Muir
2016-06-24docs: update example for finding percolator where query terms couldn't be ↵Martijn van Groningen
extracted successfully
2016-06-03[TEST] wait for yellow after setup doc tests (#18726)Britta Weber
* [TEST] wait for yellow after setup doc tests We have many places in the doc where we expect and index to be yellow before we execute a query. Therefore we have to always wait for yellow after setup.
2016-05-24Add wait for yellow to doc snippet so it runs cleanlyNik Everett
Found by http://build-us-00.elastic.co/job/es_core_master_window-2008/3866/console
2016-05-24Add back doc execution to query dsl.Isabel Drost-Fromm
Relates to #18211 This reverts commit 20aafb1196192d4f9f7faea8ce9a36b278e501a1.
2016-05-22docs: fix typoMartijn van Groningen
2016-05-22percolator: Add support dor MatchNoDocsQuery in query terms extract serviceMartijn van Groningen
Before the query extraction would have been aborted and the percolator query would be marked as unknown. This resulted in a situation that these queries always need to be evaluated by the memory index at search time. By adding support for this query many more percolator query candidate hits can skip the expensive memory index verification step. For example the `match` query parser returns a MatchNoDocsQuery if the query terms are removed by text analysis (lets query text only contained stop words).
2016-05-20percolator: Removed percolator cacheMartijn van Groningen
Before 5.0 for it was required that the percolator queries were cached in jvm heap as Lucene queries for two reasons: 1) Performance. The percolator evaluated all percolator queries all the time. There was no pre-selecting queries that are likely to match like we have today. 2) Updates made to percolator queries were visible in realtime, Today these changes are visible in near realtime. So updating no longer requires the percolator to have the queries in jvm heap. So having the percolator queries in jvm heap via the percolator cache is now less attractive. Especially when there are many percolator queries then these queries can consume many GBs of jvm heap. Removing the percolator cache does make the percolate query slower compared to how the execution time in 5.0.0-alpha1 and alpha2, but it is still faster compared to 2.x and before.
2016-05-18Add a wait_for_stats=yellow to a docs snippetNik Everett
It was making unstable tests.
2016-05-17Merge branch 'master' into docs/add_autosense_to_query_dslIsabel Drost-Fromm
2016-05-17Revert "Add Autosense annotation for query dsl testing"Isabel Drost-Fromm
2016-05-17Fix occasional build error.Isabel Drost-Fromm
2016-05-17Merge branch 'master' into docs/add_autosense_to_query_dslIsabel Drost-Fromm
2016-05-16Lessen leniency of the query dsl. #18276Adrien Grand
This change does the following: - Queries that are currently unsupported such as prefix queries on numeric fields or term queries on geo fields now throw an error rather than returning a query that does not match anything. - Fuzzy queries on numeric, date and ip fields are now unsupported: they used to create range queries, we now expect users to use range queries directly. Fuzzy, regexp and prefix queries are now only supported on text/keyword fields (including `_all`). - The `_uid` and `_id` fields do not support prefix or range queries anymore as it would prevent us to store them more efficiently in the future, eg. by using a binary encoding. Note that it is still possible to ignore these errors by using the `lenient` option of the `match` or `query_string` queries.
2016-05-14Documented fuzzy_transpositions in match queryClinton Gormley
Relates to #18320
2016-05-13Don't allow `fuzziness` for `multi_match` types cross_fields, phrase and ↵Christoph Büscher
phrase_prefix Currently `fuzziness` is not supported for the `cross_fields` type of the `multi_match` query since it complicates the logic that blends the term queries that cross_fields uses internally. At the moment using this combination is silently ignored, which can lead to confusions. Instead we should throw an exception in this case. The same is true for phrase and phrase_prefix type. Closes #7764
2016-05-12Fix build failureIsabel Drost-Fromm
2016-05-12Something messed with auto-indent. Fixed now.Isabel Drost-Fromm
2016-05-12Fix indentIsabel Drost-Fromm
2016-05-12Fix test failures.Isabel Drost-Fromm
2016-05-11Convert rest of query-dsl docs to be run in testsIsabel Drost-Fromm
2016-05-10Add CONSOLE to span queries.Isabel Drost-Fromm
... and range, and terms...
2016-05-10Use TESTSETUP instead of TEST[continued]Isabel Drost-Fromm
2016-05-10CONSOLE is the new AUTOSENSEIsabel Drost-Fromm
2016-05-10Update full-text-queries.asciidocClinton Gormley
Updated the full text query intro to add `match_phrase` and `match_phrase_prefix`