-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the how-to section of the docs for 7.0: #37717
Changes from 2 commits
acf7366
016dd6d
6506a48
ba9821e
66d07ba
e598dad
b57e2c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -395,15 +395,6 @@ be able to cope with `max_failures` node failures at once at most, then the | |
right number of replicas for you is | ||
`max(max_failures, ceil(num_nodes / num_primaries) - 1)`. | ||
|
||
[float] | ||
=== Turn on adaptive replica selection | ||
|
||
When multiple copies of data are present, elasticsearch can use a set of | ||
criteria called <<search-adaptive-replica,adaptive replica selection>> to select | ||
the best copy of the data based on response time, service time, and queue size | ||
of the node containing each copy of the shard. This can improve query throughput | ||
and reduce latency for search-heavy applications. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also just to confirm, this is removed because adaptive replica selection is now the default? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct. |
||
|
||
=== Tune your queries with the Profile API | ||
|
||
You can also analyse how expensive each component of your queries and | ||
|
@@ -419,3 +410,17 @@ Some caveats to the Profile API are that: | |
- the Profile API as a debugging tool adds significant overhead to search execution and can also have a very verbose output | ||
- 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 with `index_phrases` | ||
|
||
The <<text,`text`>> field has an <<index-phrases,`index_phrases`>> option that | ||
pre-indexes 2-shingles at index-time and is automatically leveraged by query | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: just a matter of taste I guess, but I find "pre-indexes ... at index-time" is a bit redundant (especially the pre). Maybe "indexes 2-shingles" or "already adds 2-shingles at index-time" is enough? |
||
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 with `index_prefixes` | ||
|
||
The <<text,`text`>> field has an <<index-phrases,`index_prefixes`>> option that | ||
pre-indexes prefixes of all terms at index-time and is automatically leveraged | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: same here |
||
by query parsers to run prefix queries. If your use-case involves running lots | ||
of prefix queries, this can speed up queries significantly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm, this is removed because indexing this field doesn't have the index overhead it once did?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. @colings86 made things better in #26930 and we now use doc values or norms to run queries most-of-time, and only index into the
_field_names
field when doc values are not enabled (either because the user disabled them or because the field doesn't support doc values).