Skip to content

Commit

Permalink
[DOC] Fix typos (#71869)
Browse files Browse the repository at this point in the history
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
  • Loading branch information
mimitsu and jrodewig committed Apr 20, 2021
1 parent 3ee45a3 commit e32c3f4
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions docs/reference/query-dsl.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,30 @@ Query clauses behave differently depending on whether they are used in
Allow expensive queries::
Certain types of queries will generally execute slowly due to the way they are implemented, which can affect
the stability of the cluster. Those queries can be categorised as follows:

* Queries that need to do linear scans to identify matches:
** <<query-dsl-script-query, `script queries`>>
* Queries that have a high up-front cost :
** <<query-dsl-fuzzy-query,`fuzzy queries`>> (except on <<wildcard-field-type, `wildcard`>> fields)
** <<query-dsl-regexp-query,`regexp queries`>> (except on <<wildcard-field-type, `wildcard`>> fields)
** <<query-dsl-prefix-query,`prefix queries`>> (except on <<wildcard-field-type, `wildcard`>> fields or those without <<index-prefixes, `index_prefixes`>>)
** <<query-dsl-wildcard-query, `wildcard queries`>> (except on <<wildcard-field-type, `wildcard`>> fields)
** <<query-dsl-range-query, `range queries>> on <<text, `text`>> and <<keyword, `keyword`>> fields
* <<joining-queries, `Joining queries`>>
* Queries on <<prefix-trees, deprecated geo shapes>>
** <<query-dsl-script-query,`script` queries>>

* Queries that have a high up-front cost:
** <<query-dsl-fuzzy-query,`fuzzy` queries>> (except on
<<wildcard-field-type,`wildcard`>> fields)
** <<query-dsl-regexp-query,`regexp` queries>> (except on
<<wildcard-field-type,`wildcard`>> fields)
** <<query-dsl-prefix-query,`prefix` queries>> (except on
<<wildcard-field-type,`wildcard`>> fields or those without
<<index-prefixes,`index_prefixes`>>)
** <<query-dsl-wildcard-query,`wildcard` queries>> (except on
<<wildcard-field-type,`wildcard`>> fields)
** <<query-dsl-range-query,`range` queries>> on <<text,`text`>> and
<<keyword,`keyword`>> fields

* <<joining-queries,Joining queries>>

* Queries on <<prefix-trees,deprecated geo-shapes>>

* Queries that may have a high per-document cost:
** <<query-dsl-script-score-query, `script score queries`>>
** <<query-dsl-percolate-query, `percolate queries`>>
** <<query-dsl-script-score-query,`script_score` queries>>
** <<query-dsl-percolate-query,`percolate` queries>>

The execution of such queries can be prevented by setting the value of the `search.allow_expensive_queries`
setting to `false` (defaults to `true`).
Expand Down

0 comments on commit e32c3f4

Please sign in to comment.