-
Notifications
You must be signed in to change notification settings - Fork 736
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
FunctionScore: scale_weight
is not a supported by elasticsearch
#492
Comments
Is there somewhere a list of things that were changed and removed in the final implementation? |
None that I know of, but I created an issue for all changes that I stumbled over when testing. |
There's the elasticsearch api spec but it doesn't contain the individual queries AFAIK. |
As usual, the best spec is the elasticsearch source code itself :-) |
it looks like scale_weight was renamed to decay: |
@dwenaus Good to know. Thx for the update. |
The [weight](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_weight) now replace the `boost_factor` since the 1.4.0. I also fixed ruflin#492 by replacing the `scale_weight` parameter by the `weight`
The [weight](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_weight) now replace the `boost_factor` since the 1.4.0. I also fixed ruflin#492 by replacing the `scale_weight` parameter by the `weight`
The
scale_weight
parameter does not exist for function_score in the final implementation: https://github.com/ruflin/Elastica/blob/master/lib/Elastica/Query/FunctionScore.php#L96. The decay is now only controlled by thedecay
parameter.The text was updated successfully, but these errors were encountered: