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

Comments

Projects
None yet
2 participants
@apatrida
Copy link
Contributor

commented Oct 11, 2013

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

This comment has been minimized.

Copy link
Contributor

commented Oct 11, 2013

good point, thanks for opening this!

@s1monw s1monw closed this in 2d523ac Oct 11, 2013

s1monw added a commit that referenced this issue Oct 11, 2013

Support date math for `origin` decay function parsing
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

This comment has been minimized.

Copy link
Contributor

commented Oct 11, 2013

thanks @jaysonminard for bringing this up!

mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015

Support date math for `origin` decay function parsing
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
You can’t perform that action at this time.