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
Resolve now
in date ranges in percolator and alias filters at search time instead of parse time
#8534
Merged
martijnvg
merged 1 commit into
elastic:1.x
from
martijnvg:bugs/alias_filter_and_percolator_query_with_now_based_range
Nov 19, 2014
Merged
Resolve now
in date ranges in percolator and alias filters at search time instead of parse time
#8534
martijnvg
merged 1 commit into
elastic:1.x
from
martijnvg:bugs/alias_filter_and_percolator_query_with_now_based_range
Nov 19, 2014
Conversation
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
|
||
@Override | ||
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException { | ||
return resolve().getDocIdSet(context, acceptDocs); |
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.
can resolve possibly return null? if so we should check for it
left some comments |
@s1monw I applied the feedback and left one comment. |
LGTM |
…xecuted on the last possible moment to aid with index aliases and percolator queries using `now` date expression. Percolator queries and index alias filters are parsed once and reused as long as they exist on a node. If they contain time based range filters with a `now` expression then the alias filters and percolator queries are going to be incorrect from the moment these are constructed (depending on the date rounding). If a range filter or range query is constructed as part of adding a percolator query or a index alias filter then these get wrapped in special query or filter wrappers that defer the resolution of now at last possible moment as apposed during parse time. In the case of the range filter a special Resolvable Filter makes sure that `now` is resolved when the DocIdSet is pulled and in the case of the range query `now` is resolved at query rewrite time. Both occur at the time the range filter or query is used as apposed when the query or filter is constructed during parse time. Closes elastic#8474 Closes elastic#8534
martijnvg
changed the title
Resolve
Resolve Nov 19, 2014
now
date ranges in percolator and alias filters at search time instead of parse timenow
in date ranges in percolator and alias filters at search time instead of parse time
martijnvg
force-pushed
the
bugs/alias_filter_and_percolator_query_with_now_based_range
branch
from
November 19, 2014 21:00
3dc311d
to
bba6560
Compare
martijnvg
added a commit
to martijnvg/elasticsearch
that referenced
this pull request
Nov 19, 2014
…xecuted on the last possible moment to aid with index aliases and percolator queries using `now` date expression. Percolator queries and index alias filters are parsed once and reused as long as they exist on a node. If they contain time based range filters with a `now` expression then the alias filters and percolator queries are going to be incorrect from the moment these are constructed (depending on the date rounding). If a range filter or range query is constructed as part of adding a percolator query or a index alias filter then these get wrapped in special query or filter wrappers that defer the resolution of now at last possible moment as apposed during parse time. In the case of the range filter a special Resolvable Filter makes sure that `now` is resolved when the DocIdSet is pulled and in the case of the range query `now` is resolved at query rewrite time. Both occur at the time the range filter or query is used as apposed when the query or filter is constructed during parse time. Closes elastic#8474 Closes elastic#8534
martijnvg
added a commit
that referenced
this pull request
Nov 19, 2014
…xecuted on the last possible moment to aid with index aliases and percolator queries using `now` date expression. Percolator queries and index alias filters are parsed once and reused as long as they exist on a node. If they contain time based range filters with a `now` expression then the alias filters and percolator queries are going to be incorrect from the moment these are constructed (depending on the date rounding). If a range filter or range query is constructed as part of adding a percolator query or a index alias filter then these get wrapped in special query or filter wrappers that defer the resolution of now at last possible moment as apposed during parse time. In the case of the range filter a special Resolvable Filter makes sure that `now` is resolved when the DocIdSet is pulled and in the case of the range query `now` is resolved at query rewrite time. Both occur at the time the range filter or query is used as apposed when the query or filter is constructed during parse time. Closes #8474 Closes #8534
martijnvg
added a commit
to martijnvg/elasticsearch
that referenced
this pull request
Nov 19, 2014
…xecuted on the last possible moment to aid with index aliases and percolator queries using `now` date expression. Percolator queries and index alias filters are parsed once and reused as long as they exist on a node. If they contain time based range filters with a `now` expression then the alias filters and percolator queries are going to be incorrect from the moment these are constructed (depending on the date rounding). If a range filter or range query is constructed as part of adding a percolator query or a index alias filter then these get wrapped in special query or filter wrappers that defer the resolution of now at last possible moment as apposed during parse time. In the case of the range filter a special Resolvable Filter makes sure that `now` is resolved when the DocIdSet is pulled and in the case of the range query `now` is resolved at query rewrite time. Both occur at the time the range filter or query is used as apposed when the query or filter is constructed during parse time. Closes elastic#8474 Closes elastic#8534
clintongormley
changed the title
Resolve
Query DSL: Resolve Nov 25, 2014
now
in date ranges in percolator and alias filters at search time instead of parse timenow
in date ranges in percolator and alias filters at search time instead of parse time
martijnvg
deleted the
bugs/alias_filter_and_percolator_query_with_now_based_range
branch
May 18, 2015 23:28
clintongormley
changed the title
Query DSL: Resolve
Resolve Jun 7, 2015
now
in date ranges in percolator and alias filters at search time instead of parse timenow
in date ranges in percolator and alias filters at search time instead of parse time
mute
pushed a commit
to mute/elasticsearch
that referenced
this pull request
Jul 29, 2015
…xecuted on the last possible moment to aid with index aliases and percolator queries using `now` date expression. Percolator queries and index alias filters are parsed once and reused as long as they exist on a node. If they contain time based range filters with a `now` expression then the alias filters and percolator queries are going to be incorrect from the moment these are constructed (depending on the date rounding). If a range filter or range query is constructed as part of adding a percolator query or a index alias filter then these get wrapped in special query or filter wrappers that defer the resolution of now at last possible moment as apposed during parse time. In the case of the range filter a special Resolvable Filter makes sure that `now` is resolved when the DocIdSet is pulled and in the case of the range query `now` is resolved at query rewrite time. Both occur at the time the range filter or query is used as apposed when the query or filter is constructed during parse time. Closes elastic#8474 Closes elastic#8534
mute
pushed a commit
to mute/elasticsearch
that referenced
this pull request
Jul 29, 2015
…xecuted on the last possible moment to aid with index aliases and percolator queries using `now` date expression. Percolator queries and index alias filters are parsed once and reused as long as they exist on a node. If they contain time based range filters with a `now` expression then the alias filters and percolator queries are going to be incorrect from the moment these are constructed (depending on the date rounding). If a range filter or range query is constructed as part of adding a percolator query or a index alias filter then these get wrapped in special query or filter wrappers that defer the resolution of now at last possible moment as apposed during parse time. In the case of the range filter a special Resolvable Filter makes sure that `now` is resolved when the DocIdSet is pulled and in the case of the range query `now` is resolved at query rewrite time. Both occur at the time the range filter or query is used as apposed when the query or filter is constructed during parse time. Closes elastic#8474 Closes elastic#8534
clintongormley
added
:Search/Mapping
Index mappings, including merging and defining field types
and removed
:Dates
labels
Feb 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>bug
:Search/Mapping
Index mappings, including merging and defining field types
v1.3.6
v1.4.1
v1.5.0
v2.0.0-beta1
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.
PR for #8474. Percolator queries and index alias filters are parsed once and reused as long as they exist on a node. If they contain time based range filters with a
now
expression then the alias filters and percolator queries are going to be incorrect from the moment these are constructed (depending on the date rounding).If a
range
filter orrange
query is constructed as part of adding a percolator query or a index alias filter then these get wrapped in special query or filter wrappers that defer the resolution of now at last possible moment instead of during parse time. In the case of the range filter a special Resolvable Filter makes sure thatnow
is resolved when the DocIdSet is pulled and in the case of the range querynow
is resolved at query rewrite time. Both occur at the time the range filter or query is used as apposed when the query or filter is constructed during parse time.Note this PR is against the 1.x branch.