[Docs] Clarify size parameter in Completion Suggester doc#26617
Merged
tlrx merged 1 commit intoelastic:masterfrom Sep 13, 2017
Merged
[Docs] Clarify size parameter in Completion Suggester doc#26617tlrx merged 1 commit intoelastic:masterfrom
tlrx merged 1 commit intoelastic:masterfrom
Conversation
cbuescher
reviewed
Sep 13, 2017
|
|
||
| [source,js] | ||
| -------------------------------------------------- | ||
| POST music/_search?size=0 |
Member
There was a problem hiding this comment.
I see why this is confusing, but it's also an interesting piece of information that this size refers to the number of search hits to return. Maybe leave this and extend <3> to briefly explain the difference and why size=0 makes sense here as the url parameter?
Member
Author
There was a problem hiding this comment.
Christoph and I talked about this and it seems like Elasticsearch is already optimized when suggest only search requests are executed (see QueryPhase.execute(SearchContext searchContext)), so it seems like adding the size=0 does not really make sense.
cbuescher
approved these changes
Sep 13, 2017
tlrx
added a commit
that referenced
this pull request
Sep 13, 2017
tlrx
added a commit
that referenced
this pull request
Sep 13, 2017
tlrx
added a commit
that referenced
this pull request
Sep 13, 2017
Member
Author
|
Thanks @cbuescher ! |
jasontedor
added a commit
to synhershko/elasticsearch
that referenced
this pull request
Sep 14, 2017
* master: (39 commits) [Docs] Correct typo in removal_of_types.asciidoc (elastic#26646) [Docs] "The the" is a great band, but ... (elastic#26644) Move all repository-azure classes under one single package (elastic#26624) [Docs] Update link in removal_of_types.asciidoc (elastic#26614) Fix percolator highlight sub fetch phase to not highlight query twice (elastic#26622) Refactor bootstrap check results and error messages Add BootstrapContext to expose settings and recovered state to bootstrap checks (elastic#26628) [Tests] Removing skipping tests in search rest tests Initialize checkpoint tracker with allocation ID Move non-core mappers to a module. (elastic#26549) [Docs] Clarify size parameter in Completion Suggester doc (elastic#26617) Add soft limit on allowed number of script fields in request (elastic#26598) Remove MapperService#dynamic. (elastic#26603) Fix incomplete sentences in parent-join docs (elastic#26623) More efficient encoding of range fields. (elastic#26470) Ensure module is bundled before installing in tests Add boolean similarity to built in similarity types (elastic#26613) [Tests] Remove skip tests in search/30_limits.yml Let search phases override max concurrent requests Add a soft limit for the number of requested doc-value fields (elastic#26574) ...
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The
size=0parameter can be confusing for some users.