OpenSearch/docs/reference/query-dsl
Luca Cavanna 67ccfc354e Switch to using ParseField to parse query names
* [TEST] check registered queries one by one in SearchModuleTests

* Switch to using ParseField to parse query names

If we have a deprecated query name, at the moment we don't have a way to log any deprecation warning nor fail when we are in strict mode. With this change we use ParseField, which will take care of the camel casing that we currently do manually (so that one day we can remove it more easily). This also means, that each query will have a unique preferred name, and all the other names are deprecated.

Terms query "in" synonym is now formally deprecated, as well as fuzzy_match, match_fuzzy, match_phrase and match_phrase_prefix for match query, mlt for more_like_this and geo_bbox for geo_bounding_box. All these will be removed in 6.0.

Every QueryParser holds now a ParseField constant called QUERY_NAME_FIELD that holds the name for it. The first name is the preferred one, all the others are deprecated. The first name is taken from the NAME constant already present in each query builder object, so that we somehow keep the serialization constant separated from ParseField. This change also allowed us to remove the names method from the QueryParser interface.
2016-04-05 15:38:53 +02:00
..
bool-query.asciidoc Fix reference guide about the default value of min_should_match. 2016-03-31 10:49:02 +02:00
boosting-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
common-terms-query.asciidoc Polish doc 2015-11-28 18:25:42 +01: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 Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
dis-max-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
exists-query.asciidoc Document 5.0 mapping changes. 2016-03-22 16:22:58 +01:00
full-text-queries.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
function-score-query.asciidoc [DOCS] Fix missing table end in function-score-query.asciidoc 2016-03-10 13:35:33 -07:00
fuzzy-query.asciidoc Bump Elasticsearch version to 5.0.0-SNAPSHOT 2016-03-01 17:03:47 -05:00
geo-bounding-box-query.asciidoc Merge pull request #14800 from MaineC/doc-fix/query-dsl 2016-03-10 13:45:13 +01:00
geo-distance-query.asciidoc GeoPointV2 update docs and query builders 2016-03-09 16:09:44 -06:00
geo-distance-range-query.asciidoc The boost keyword changed to bool 2015-10-18 13:45:10 +05:30
geo-polygon-query.asciidoc GeoPointV2 update docs and query builders 2016-03-09 16:09:44 -06:00
geo-queries.asciidoc Fix typos in docs. 2016-02-09 02:07:32 -08:00
geo-shape-query.asciidoc Update geo_shape/query docs, fix TermStrategy defaults 2015-12-11 17:14:22 -06:00
geohash-cell-query.asciidoc Docs: Remove docs for the `filtered`, `and`, `or` and `(f)query` queries. 2015-09-11 11:00:54 +02:00
has-child-query.asciidoc Merge pull request #14800 from MaineC/doc-fix/query-dsl 2016-03-10 13:45:13 +01:00
has-parent-query.asciidoc Merge branch 'master' into feature/query-refactoring 2015-09-11 14:15:12 +02:00
ids-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
indices-query.asciidoc [DOCS] remove tip on indices query elements order 2015-10-28 10:50:28 +01:00
joining-queries.asciidoc Cleanup ParentFieldMapper: 2016-01-20 16:56:22 +01:00
match-all-query.asciidoc Docs: Add query to Query DSL documentation 2015-11-18 14:39:28 +01:00
match-query.asciidoc Merge pull request #12264 from peschlowp/patch-6 2015-07-15 13:22:23 +02:00
minimum-should-match.asciidoc Query DSL: Remove filter parsers. 2015-05-07 20:14:34 +02:00
mlt-query.asciidoc Switch to using ParseField to parse query names 2016-04-05 15:38:53 +02:00
multi-match-query.asciidoc `multi_match` query applies boosts too many times. 2015-08-06 19:07:12 +02:00
multi-term-rewrite.asciidoc Expose Lucene's new TopTermsBlendedFreqScoringRewrite. 2015-07-08 16:01:47 +02:00
nested-query.asciidoc Remove support for filter element in nested query 2015-10-28 10:50:29 +01:00
parent-id-query.asciidoc Bump Elasticsearch version to 5.0.0-SNAPSHOT 2016-03-01 17:03:47 -05:00
percolator-query.asciidoc percolator: Replace percolate api with the new percolator query 2016-03-21 12:21:50 +01:00
prefix-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
query-string-query.asciidoc Docs: Update Joda URLs in documentation. 2015-06-26 10:23:02 +02:00
query-string-syntax.asciidoc Merge pull request #13894 from dmland/patch-1 2015-11-18 15:50:30 +01:00
query_filter_context.asciidoc Docs: Use "js" instead of "json" and "sh" instead of "shell" for source highlighting 2015-07-14 18:14:09 +02:00
range-query.asciidoc Gives more emphasys 2015-09-24 11:30:00 -03:00
regexp-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
regexp-syntax.asciidoc Corrected regexp syntax docs for COMPLEMENT 2016-03-14 10:46:31 +01:00
script-query.asciidoc Docs: Remove docs for the `filtered`, `and`, `or` and `(f)query` queries. 2015-09-11 11:00:54 +02:00
simple-query-string-query.asciidoc Docs: add description of the analyze_wildcard parameter to the simple query string query docs 2015-06-22 18:26:31 -04:00
span-containing-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
span-first-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
span-multi-term-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
span-near-query.asciidoc Deprecate span_near's collect_payloads 2016-01-11 22:11:38 -05:00
span-not-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
span-or-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
span-queries.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
span-term-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
span-within-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
special-queries.asciidoc percolator: Replace percolate api with the new percolator query 2016-03-21 12:21:50 +01:00
template-query.asciidoc Update template-query.asciidoc 2016-03-23 17:14:31 +08:00
term-level-queries.asciidoc Removes all the reference of the query in the docs 2015-12-11 20:07:57 +01:00
term-query.asciidoc Document 5.0 mapping changes. 2016-03-22 16:22:58 +01:00
terms-query.asciidoc Switch to using ParseField to parse query names 2016-04-05 15:38:53 +02:00
type-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00
wildcard-query.asciidoc Docs: Reorganised the Query DSL docs into families and explaing query vs filter context 2015-06-04 01:59:37 +02:00