-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Generalize how queries on _index
are handled at rewrite time
#52486
Merged
jpountz
merged 37 commits into
elastic:master
from
jpountz:enhancement/simplify_in_rewrite
Feb 26, 2020
Merged
Generalize how queries on _index
are handled at rewrite time
#52486
jpountz
merged 37 commits into
elastic:master
from
jpountz:enhancement/simplify_in_rewrite
Feb 26, 2020
Commits on Nov 29, 2019
-
Introduce a
singleton_keyword
field.This field is a specialization of the `keyword` field for the case when all documents have the same value. It typically performs more efficiently than keywords at query time by figuring out whether all or none of the documents match at rewrite time, like `term` queries on `_index`. The name is up for discussion. I liked including `keyword` in it, so that we still have room for a `singleton_numeric` in the future. However I'm unsure whether to call it `singleton`, `constant` or something else, any opinions? For this field there is a choice between 1. accepting values in `_source` when they are equal to the value configured in mappings, but rejecting mapping updates 2. rejecting values in `_source` but then allowing updates to the value that is configured in the mapping This commit implements option 1, so that it is possible to reindex from/to an index that has the field mapped as a keyword with no changes to the source.
Configuration menu - View commit details
-
Copy full SHA for db1a079 - Browse repository at this point
Copy the full SHA db1a079View commit details -
Configuration menu - View commit details
-
Copy full SHA for c253ce7 - Browse repository at this point
Copy the full SHA c253ce7View commit details -
Configuration menu - View commit details
-
Copy full SHA for abf27f1 - Browse repository at this point
Copy the full SHA abf27f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 002fe96 - Browse repository at this point
Copy the full SHA 002fe96View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6738d8 - Browse repository at this point
Copy the full SHA c6738d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7b894e - Browse repository at this point
Copy the full SHA b7b894eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5f288e - Browse repository at this point
Copy the full SHA f5f288eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a86ad8a - Browse repository at this point
Copy the full SHA a86ad8aView commit details
Commits on Dec 2, 2019
-
Configuration menu - View commit details
-
Copy full SHA for a5949d6 - Browse repository at this point
Copy the full SHA a5949d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9c43aa - Browse repository at this point
Copy the full SHA c9c43aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b907c2 - Browse repository at this point
Copy the full SHA 6b907c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 779d128 - Browse repository at this point
Copy the full SHA 779d128View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51dc118 - Browse repository at this point
Copy the full SHA 51dc118View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8da5b6c - Browse repository at this point
Copy the full SHA 8da5b6cView commit details
Commits on Dec 3, 2019
-
Configuration menu - View commit details
-
Copy full SHA for af4a55a - Browse repository at this point
Copy the full SHA af4a55aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d1b71f4 - Browse repository at this point
Copy the full SHA d1b71f4View commit details
Commits on Jan 8, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f8ddbf7 - Browse repository at this point
Copy the full SHA f8ddbf7View commit details
Commits on Jan 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d346303 - Browse repository at this point
Copy the full SHA d346303View commit details -
Configuration menu - View commit details
-
Copy full SHA for c378cdf - Browse repository at this point
Copy the full SHA c378cdfView commit details
Commits on Feb 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 59fd6b0 - Browse repository at this point
Copy the full SHA 59fd6b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4592af2 - Browse repository at this point
Copy the full SHA 4592af2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab70f10 - Browse repository at this point
Copy the full SHA ab70f10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b29a43 - Browse repository at this point
Copy the full SHA 0b29a43View commit details
Commits on Feb 18, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 936f883 - Browse repository at this point
Copy the full SHA 936f883View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44a7170 - Browse repository at this point
Copy the full SHA 44a7170View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7639d34 - Browse repository at this point
Copy the full SHA 7639d34View commit details -
Configuration menu - View commit details
-
Copy full SHA for fba9ca3 - Browse repository at this point
Copy the full SHA fba9ca3View commit details
Commits on Feb 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a284be9 - Browse repository at this point
Copy the full SHA a284be9View commit details
Commits on Feb 21, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f9a23e2 - Browse repository at this point
Copy the full SHA f9a23e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b312407 - Browse repository at this point
Copy the full SHA b312407View commit details -
Configuration menu - View commit details
-
Copy full SHA for 437315d - Browse repository at this point
Copy the full SHA 437315dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f94930 - Browse repository at this point
Copy the full SHA 3f94930View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cd5c6d - Browse repository at this point
Copy the full SHA 7cd5c6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51f7b3c - Browse repository at this point
Copy the full SHA 51f7b3cView commit details
Commits on Feb 25, 2020
-
Configuration menu - View commit details
-
Copy full SHA for dc0bf44 - Browse repository at this point
Copy the full SHA dc0bf44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15af22f - Browse repository at this point
Copy the full SHA 15af22fView commit details
Commits on Feb 26, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2b00751 - Browse repository at this point
Copy the full SHA 2b00751View commit details
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.