-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
acf7366
Update the how-to section of the docs for 7.0:
jpountz 016dd6d
iter
jpountz 6506a48
Merge branch 'master' into fix/howto-docs-7
jpountz ba9821e
Address @cbuescher's comments.
jpountz 66d07ba
`feature` has been renamed to `rank_feature`
jpountz e598dad
iter
jpountz b57e2c2
iter
jpountz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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 with `index_prefixes` | ||
|
||
The <<text,`text`>> field has an <<index-phrases,`index_prefixes`>> option that | ||
indexes prefixes of all terms and is automatically leveraged by query parsers to | ||
run prefix queries. If your use-case involves running lots of prefix queries, | ||
this can speed up queries significantly. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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).