-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Date math in query_string caches now() #2808
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
Labels
Comments
Also see #2809 |
kimchy
added a commit
that referenced
this issue
Mar 27, 2013
pdegeus
added a commit
to pdegeus/elasticsearch
that referenced
this issue
Mar 28, 2013
# By Shay Banon (2) and others # Via Shay Banon * commit '473473e86762b72c13d435a23fb4a8330c692487': remove the field settings for query parser cache, not really relevant Date math in query_string caches now() fixes elastic#2808 Move applying alias filter to ContextSearch#preProcess() Terminate early when no terms left in the suggest string.
martijnvg
pushed a commit
to martijnvg/elasticsearch
that referenced
this issue
Jan 31, 2018
This change removes the InternalClient and the InternalSecurityClient. These are replaced with usage of the ThreadContext and a transient value, `action.origin`, to indicate which component the request came from. The security code has been updated to look for this value and ensure the request is executed as the proper user. This work comes from elastic#2808 where @s1monw suggested that we do this. While working on this, I came across index template registries and rather than updating them to use the new method, I replaced the ML one with the template upgrade framework so that we could remove this template registry. The watcher template registry is still needed as the template must be updated for rolling upgrades to work (see elastic#2950).
martijnvg
pushed a commit
that referenced
this issue
Feb 5, 2018
This change removes the InternalClient and the InternalSecurityClient. These are replaced with usage of the ThreadContext and a transient value, `action.origin`, to indicate which component the request came from. The security code has been updated to look for this value and ensure the request is executed as the proper user. This work comes from #2808 where @s1monw suggested that we do this. While working on this, I came across index template registries and rather than updating them to use the new method, I replaced the ML one with the template upgrade framework so that we could remove this template registry. The watcher template registry is still needed as the template must be updated for rolling upgrades to work (see #2950).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
"now"
in date math in the query string, the value fornow
is cached:Run this query multiple times:
You will see that the description line
"ConstantScore(date:[1363953493782 TO *])"
reuses the same start dateA
range
query on the other hand, updates the start date on each run:The text was updated successfully, but these errors were encountered: