From 881a07bee1d77ff31439bc1415b85b04e78f778f Mon Sep 17 00:00:00 2001 From: James Rodewig Date: Thu, 25 Apr 2019 14:35:50 -0400 Subject: [PATCH 1/2] [DOCS] Explicitly set section ID for faster phrase queries --- docs/reference/how-to/search-speed.asciidoc | 1 + docs/reference/redirects.asciidoc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/reference/how-to/search-speed.asciidoc b/docs/reference/how-to/search-speed.asciidoc index 097d791363249..e8a945a200a5c 100644 --- a/docs/reference/how-to/search-speed.asciidoc +++ b/docs/reference/how-to/search-speed.asciidoc @@ -411,6 +411,7 @@ 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 <> field has an <> option that diff --git a/docs/reference/redirects.asciidoc b/docs/reference/redirects.asciidoc index 7e00e10a52050..12c66eca593fd 100644 --- a/docs/reference/redirects.asciidoc +++ b/docs/reference/redirects.asciidoc @@ -594,3 +594,7 @@ formation module>>. === {xpack} settings in {es} include::{asciidoc-dir}/../../shared/settings.asciidoc[] + +[role="exclude",id="_faster_phrase_queries_with_literal_index_phrases_literal"] + +See <>. \ No newline at end of file From b1bccae7ca914ca3873c0795972f062512f72670 Mon Sep 17 00:00:00 2001 From: James Rodewig Date: Thu, 25 Apr 2019 14:46:50 -0400 Subject: [PATCH 2/2] [DOCS] Explicitly set section ID for faster prefix queries --- docs/reference/how-to/search-speed.asciidoc | 1 + docs/reference/redirects.asciidoc | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/reference/how-to/search-speed.asciidoc b/docs/reference/how-to/search-speed.asciidoc index e8a945a200a5c..017dd74afa084 100644 --- a/docs/reference/how-to/search-speed.asciidoc +++ b/docs/reference/how-to/search-speed.asciidoc @@ -419,6 +419,7 @@ 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 <> field has an <> option that diff --git a/docs/reference/redirects.asciidoc b/docs/reference/redirects.asciidoc index 12c66eca593fd..1c6850542a971 100644 --- a/docs/reference/redirects.asciidoc +++ b/docs/reference/redirects.asciidoc @@ -597,4 +597,8 @@ include::{asciidoc-dir}/../../shared/settings.asciidoc[] [role="exclude",id="_faster_phrase_queries_with_literal_index_phrases_literal"] -See <>. \ No newline at end of file +See <>. + +[role="exclude",id="_faster_prefix_queries_with_literal_index_prefixes_literal.html"] + +See <>. \ No newline at end of file