Skip to content
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

function_score (FunctionScoreQuery) decay functions do not allow date math #3892

Closed
apatrida opened this issue Oct 11, 2013 · 2 comments · Fixed by #3895
Closed

function_score (FunctionScoreQuery) decay functions do not allow date math #3892

apatrida opened this issue Oct 11, 2013 · 2 comments · Fixed by #3895

Comments

@apatrida
Copy link
Contributor

For "linear", "gauss", "exp" ... functions, the "origin" function should allow parameters and date math. "now" as origin fails to parse. Just as "now-7d" would as well. Obviously offset can replace part of the date math, the origin still would be useful to be set in that way.

@ghost ghost assigned s1monw Oct 11, 2013
@s1monw
Copy link
Contributor

s1monw commented Oct 11, 2013

good point, thanks for opening this!

@s1monw s1monw closed this as completed in 2d523ac Oct 11, 2013
s1monw added a commit that referenced this issue Oct 11, 2013
The parser used the method that was supposed to be used for parsing on
the indexing side that never supported date math.

Closes #3892
@s1monw
Copy link
Contributor

s1monw commented Oct 11, 2013

thanks @jaysonminard for bringing this up!

mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
The parser used the method that was supposed to be used for parsing on
the indexing side that never supported date math.

Closes elastic#3892
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants