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

FunctionScore: scale_weight is not a supported by elasticsearch #492

Closed
Xylakant opened this issue Oct 31, 2013 · 6 comments · Fixed by #735
Closed

FunctionScore: scale_weight is not a supported by elasticsearch #492

Xylakant opened this issue Oct 31, 2013 · 6 comments · Fixed by #735
Labels

Comments

@Xylakant
Copy link

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 the decay parameter.

@ruflin
Copy link
Owner

ruflin commented Nov 3, 2013

Is there somewhere a list of things that were changed and removed in the final implementation?

@Xylakant
Copy link
Author

Xylakant commented Nov 3, 2013

None that I know of, but I created an issue for all changes that I stumbled over when testing.

@Xylakant
Copy link
Author

Xylakant commented Nov 3, 2013

There's the elasticsearch api spec but it doesn't contain the individual queries AFAIK.

@ruflin
Copy link
Owner

ruflin commented Nov 3, 2013

As usual, the best spec is the elasticsearch source code itself :-)

@ruflin ruflin added the bug label Mar 8, 2014
@dwenaus
Copy link

dwenaus commented Jun 20, 2014

@ruflin
Copy link
Owner

ruflin commented Jun 22, 2014

@dwenaus Good to know. Thx for the update.

jdeniau added a commit to jdeniau/Elastica that referenced this issue Dec 19, 2014
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`
jdeniau added a commit to jdeniau/Elastica that referenced this issue Jan 21, 2015
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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants