summaryrefslogtreecommitdiff
path: root/docs/reference/query-dsl
AgeCommit message (Collapse)Author
2017-06-23Update percolate-query.asciidoc (#25364)dkimdon
2017-06-22percolator: Deprecate `document_type` parameter.Martijn van Groningen
The `document_type` parameter is no longer required to be specified, because by default from 6.0 only a single type is allowed. (`index.mapping.single_type` defaults to `true`)
2017-06-15Upgrade to lucene-7.0.0-snapshot-92b1783. (#25222)Adrien Grand
This snapshot has faster range queries on range fields (LUCENE-7828), more accurate norms (LUCENE-7730) and the ability to use fake term frequencies (LUCENE-7854).
2017-06-09Scripting: Change keys for inline/stored scripts to source/id (#25127)Ryan Ernst
This commit adds back "id" as the key within a script to specify a stored script (which with file scripts now gone is no longer ambiguous). It also adds "source" as a replacement for "code". This is in an attempt to normalize how scripts are specified across both put stored scripts and script usages, including search template requests. This also deprecates the old inline/stored keys.
2017-06-09Made the same length of opening and closing lines (#23583)Andrey Groshev
2017-05-30Add missing word to terms-query.asciidoc (#24960)David Cho-Lerat
2017-05-30Correct some spelling in match-phrase-prefix docs (#24956)David Cho-Lerat
2017-05-11Removed deprecated template query.Martijn van Groningen
Relates to #19390
2017-04-27Only allow one type on 7.0 indices (#24317)Adrien Grand
This adds the `index.mapping.single_type` setting, which enforces that indices have at most one type when it is true. The default value is true for 6.0+ indices and false for old indices. Relates #15613
2017-04-26Rewrite description of `bool`'s `should` (#24342)Nik Everett
Docs: rewrite description of `bool`'s `should` Rewrites the description of the `bool` query's `should` clauses so it is (hopefully) more clear what the defaults for `minimum_should_match` are. There is still an `[IMPORTANT]` section about `minimum_should_match` in a filter context. I think it is worth keeping because it is, well, important. Closes #23831
2017-04-19Add primary term to doc write responseJason Tedor
This commit adds the primary term to the doc write response. Relates #24171
2017-04-18Upgrade to a Lucene 7 snapshot (#24089)Adrien Grand
We want to upgrade to Lucene 7 ahead of time in order to be able to check whether it causes any trouble to Elasticsearch before Lucene 7.0 gets released. From a user perspective, the main benefit of this upgrade is the enhanced support for sparse fields, whose resource consumption is now function of the number of docs that have a value rather than the total number of docs in the index. Some notes about the change: - it includes the deprecation of the `disable_coord` parameter of the `bool` and `common_terms` queries: Lucene has removed support for coord factors - it includes the deprecation of the `index.similarity.base` expert setting, since it was only useful to configure coords and query norms, which have both been removed - two tests have been marked with `@AwaitsFix` because of #23966, which we intend to address after the merge
2017-04-06CONSOLEify highlighting a function_score docsNik Everett
Converts many of the partial examples into full search requests. Relates #18160
2017-03-31CONSOLEify geo-shape docsNik Everett
`CONSOLE`ify geo-shape type and geo-shape query docs. Relates to #18160
2017-03-30Fix exists query docNik Everett
I managed to push the last one without testing it because I'd changed the way I run tests locally and hadn't picked it up. Ooops. This one works better.
2017-03-30Mark exists-query dsl doc properlyNik Everett
All the docs for the `exists` query that aren't marked as `CONSOLE` aren't actually `CONSOLE`-worthy so this marks them as `NOTCONSOLE`. It also rewrites the text around `missing` query. Since it was removed in 5.0 we don't need to talk about it in the 6.0 docs. Relates to #18160
2017-03-13Docs: Fix indentation in has-child-query.asciidoc (#23565)Pavel Chertorogov
2017-03-13Docs: Fix indentation in has-parent-query.asciidocPavel Chertorogov
2017-02-15Typo (#23179)AlexNodex
autoGeneratePhraseQueries should be auto_generate_phrase_queries
2017-02-15Fix typo (#23171)Catherine Snow
2017-02-13Add note about min_score filtering efficiency (#23109)Giuseppe
* Add note about min_score filtering efficiency * Reword to mention 'HAVING' * Remove reference to HAVING
2017-02-07Docs: CONSOLEify some more docsNik Everett
These need to be CONSOLEified *now* because we're starting to require Content-Type headers and they didn't have any. * cluster/reroute: Marked as CONSOLE but skipped because the docs build runs with a single node. * docs/bulk: Marked as NOTCONSOLE because the snippets describe either examples or `curl` commands. Fixed the `curl` command to include the `Content-Type` header. * query-dsl/terms-query: Marked as CONSOLE. * search/request/rescore: Marked as CONSOLE. Fixed deprecated syntax. Relates #23001 Relates #18160
2017-02-06[Docs] Remove ignore_malformed from Geo Query DSL docsNicholas Knize
This commit removes the ignore_malformed parameter from the Geo Query DSL documentation.
2017-02-02Reduce GeoDistance insanityNicholas Knize
GeoDistance query, sort, and scripts make use of a crazy GeoDistance enum for handling 4 different ways of computing geo distance: SLOPPY_ARC, ARC, FACTOR, and PLANE. Only two of these are necessary: ARC, PLANE. This commit removes SLOPPY_ARC, and FACTOR and cleans up the way Geo distance is computed.
2017-01-31Docs: Add a note about `<` and `>` in query_stringNik Everett
`<` and `>` can't be escaped at all in `query_string`. If we're not going to fix that we should at least document it. Relates to #21703
2017-01-23Update span-multi-term-query.asciidoc (#22733)William Webber
"term" is not actually a multi-term query (perhaps confusion with "term range")
2017-01-23"from" => "gte", "to" => "lte" in bool example (#22735)William Webber
2017-01-12Indentation error on example of dist_max (#22578)Francesc Gil
There was a problem with the indentation on the example of the `dist_max` query
2017-01-10Document simple_query_string negation with default_operator of ORLee Hinman
This can be confusing when unexpected. Resolves #4707
2017-01-10Document `must_not` context and scoring (#22532)Jake
Document that `must_not` uses filter context and returns a score of `0`.
2017-01-10Fix parent_id example in docsNik Everett
And fix some indentation I noticed while looking up the query.
2016-12-29Docs: Added link from bool and constant score query to filter contextClinton Gormley
Closes #22353
2016-12-19Be explicit about the fact backslashes need to be escaped. (#22257)Adrien Grand
Relates #22255
2016-12-12Un-deprecate fuzzy query (#22088)Luca Cavanna
When we decided to deprecate and remove fuzzy query in #15760, we didn't realize we would take away the possibililty for uses to use a fuzzy query as part of a span query, which is not possible using match query. This means we have to go back and un-deprecate fuzzy query, which will not be removed. Closes #15760
2016-12-09Fix typo in percolated-query.asciidoc (#21991)Matias Anaya
2016-11-30Remove indices query (#21837)Luca Cavanna
The indices query is deprecated since 5.0.0 (#17710). It can now be removed in master (future 6.0 version).
2016-11-30Remove docs for the removed `geo_distance_range` query.Adrien Grand
2016-11-30The `terms` query should always map to a Lucene `TermsQuery`. (#21786)Adrien Grand
Currently, the `terms` query is just syctactic sugar for a `bool` query when used in a query context. This change proposes to always generate the same query in query and filter contexts, which is less confusing.
2016-11-29Remove deprecated query names: in, geo_bbox, mlt, fuzzy_match and ↵Luca Cavanna
match_fuzzy (#21852) These query names were all deprecated in 5.0.0: - in is removed in favour of terms - geo_bbox is removed in favour of geo_bounding_box - mlt is removed in favour of more_like_this - fuzzy_match and match_fuzzy are removed in favour of match
2016-11-29Upgrade to lucene-6.4.0-snapshot-ec38570 (#21853)Jim Ferenczi
Set lucene version to 6.4.0-snapshot-ec38570 and update all the sha1s/license Fix invalid combo after upgrade in query_string query. split_on_whitespace=false is disallowed if auto_generate_phrase_queries=true Adapt the expectations of some tests to the new format of the Lucene explain output
2016-11-26Update percolate-query.asciidocClinton Gormley
Add missing callout to percolate query
2016-11-21Fixing indentation in geospatial querying example. (#21682)Trey Tacon
Specifically the example which shows providing an array of an array of values.
2016-11-17Add documentation for lenient in multimatchDavid Pilato
`lenient` option is documented for `match` query but not for `multi_match` query.
2016-11-16Add documentation for lenient in multimatchDavid Pilato
`lenient` option is documented for `match` query but not for `multi_match` query.
2016-11-16Merge branch 'master' into feature/seq_noJason Tedor
* master: (22 commits) Add proper toString() method to UpdateTask (#21582) Fix `InternalEngine#isThrottled` to not always return `false`. (#21592) add `ignore_missing` option to SplitProcessor (#20982) fix trace_match behavior for when there is only one grok pattern (#21413) Remove dead code from GetResponse.java Fixes date range query using epoch with timezone (#21542) Do not cache term queries. (#21566) Updated dynamic mapper section Docs: Clarify date_histogram bucket sizes for DST time zones Handle release of 5.0.1 Fix skip reason for stats API parameters test Reduce skip version for stats API parameter tests Strict level parsing for indices stats Remove cluster update task when task times out (#21578) [DOCS] Mention "all-fields" mode doesn't search across nested documents InternalTestCluster: when restarting a node we should validate the cluster is formed via the node we just restarted Fixed bad asciidoc in boolean mapping docs Fixed bad asciidoc ID in node stats Be strict when parsing values searching for booleans (#21555) Fix time zone rounding edge case for DST overlaps ...
2016-11-15[DOCS] Mention "all-fields" mode doesn't search across nested documentsLee Hinman
2016-11-11Remove shard ID from doc write responseJason Tedor
This commit removes the shard ID from doc write response; this was useful for debugging but its time has passed. Relates #21508
2016-11-10Merge branch 'master' into feature/seq_noJason Tedor
* master: (516 commits) Avoid angering Log4j in TransportNodesActionTests Add trace logging when aquiring and releasing operation locks for replication requests Fix handler name on message not fully read Remove accidental import. Improve log message in TransportNodesAction Clean up of Script. Update Joda Time to version 2.9.5 (#21468) Remove unused ClusterService dependency from SearchPhaseController (#21421) Remove max_local_storage_nodes from elasticsearch.yml (#21467) Wait for all reindex subtasks before rethrottling Correcting a typo-Maan to Man-in README.textile (#21466) Fix InternalSearchHit#hasSource to return the proper boolean value (#21441) Replace all index date-math examples with the URI encoded form Fix typos (#21456) Adapt ES_JVM_OPTIONS packaging test to ubuntu-1204 Add null check in InternalSearchHit#sourceRef to prevent NPE (#21431) Add VirtualBox version check (#21370) Export ES_JVM_OPTIONS for SysV init Skip reindex rethrottle tests with workers Make forbidden APIs be quieter about classpath warnings (#21443) ...
2016-11-09Add "all fields" execution mode to simple_query_string queryLee Hinman
This commit introduces a new execution mode for the `simple_query_string` query, which is intended down the road to be a replacement for the current _all field. It now does auto-field-expansion and auto-leniency when the following criteria are ALL met: The _all field is disabled No default_field has been set in the index settings No fields are specified in the request Additionally, a user can force the "all-like" execution by setting the all_fields parameter to true. When executing in all field mode, the `simple_query_string` query will look at all the fields in the mapping that are not metafields and can be searched, and automatically expand the list of fields that are going to be queried. Relates to #20925, which is the `query_string` version of this work. This is basically the same behavior, but for the `simple_query_string` query. Relates to #19784
2016-11-04Add "all field" execution mode to query_string queryLee Hinman
This commit introduces a new execution mode for the query_string query, which is intended down the road to be a replacement for the current _all field. It now does auto-field-expansion and auto-leniency when the following criteria are ALL met: The _all field is disabled No default_field has been set in the index settings No default_field has been set in the request No fields are specified in the request Additionally, a user can force the "all-like" execution by setting the all_fields parameter to true. When executing in all field mode, the query_string query will look at all the fields in the mapping that are not metafields and can be searched, and automatically expand the list of fields that are going to be queried. Relates to #19784