Skip to content

Commit

Permalink
[DOCS] Explicitly set section IDs for Asciidoctor migration (#41547)
Browse files Browse the repository at this point in the history
* [DOCS] Explicitly set section ID for faster phrase queries

* [DOCS] Explicitly set section ID for faster prefix queries
  • Loading branch information
jrodewig committed Apr 25, 2019
1 parent fa3f5aa commit 00d0eac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference/how-to/search-speed.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,15 @@ Some caveats to the Profile API are that:
- given the added overhead, the resulting took times are not reliable indicators of actual took time, but can be used comparatively between clauses for relative timing differences
- the Profile API is best for exploring possible reasons behind the most costly clauses of a query but isn't intended for accurately measuring absolute timings of each clause

[[faster-phrase-queries]]
=== Faster phrase queries with `index_phrases`

The <<text,`text`>> field has an <<index-phrases,`index_phrases`>> option that
indexes 2-shingles and is automatically leveraged by query parsers to run phrase
queries that don't have a slop. If your use-case involves running lots of phrase
queries, this can speed up queries significantly.

[[faster-prefix-queries]]
=== Faster prefix queries with `index_prefixes`

The <<text,`text`>> field has an <<index-phrases,`index_prefixes`>> option that
Expand Down
8 changes: 8 additions & 0 deletions docs/reference/redirects.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -594,3 +594,11 @@ formation module>>.
=== {xpack} settings in {es}

include::{asciidoc-dir}/../../shared/settings.asciidoc[]

[role="exclude",id="_faster_phrase_queries_with_literal_index_phrases_literal"]

See <<faster-phrase-queries>>.

[role="exclude",id="_faster_prefix_queries_with_literal_index_prefixes_literal.html"]

See <<faster-prefix-queries>>.

0 comments on commit 00d0eac

Please sign in to comment.