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

v2: Let FunctionScoreQuery allow both Query and Filter #587

Merged
merged 1 commit into from
Sep 15, 2017
Merged

v2: Let FunctionScoreQuery allow both Query and Filter #587

merged 1 commit into from
Sep 15, 2017

Conversation

edsrzf
Copy link

@edsrzf edsrzf commented Aug 23, 2017

Previously, FunctionScoreQuery only allowed either Query or Filter to be set,
setting the other to nil. There's no reason to do this, though, as
ElasticSearch allows both to be set.

See the equivalent Java code here:
https://github.com/elastic/elasticsearch/blob/v1.7.6/src/main/java/org/elasticsearch/index/query/functionscore/FunctionScoreQueryBuilder.java#L85-L88

Previously, FunctionScoreQuery only allowed either Query or Filter to be set,
setting the other to nil. There's no reason to do this, though, as
ElasticSearch allows both to be set.

See the equivalent Java code here:
https://github.com/elastic/elasticsearch/blob/v1.7.6/src/main/java/org/elasticsearch/index/query/functionscore/FunctionScoreQueryBuilder.java#L85-L88
@olivere
Copy link
Owner

olivere commented Aug 29, 2017

Yep. Although v2 is unsupported, I will fix it in the next update. Thanks for reporting.

olivere added a commit that referenced this pull request Sep 15, 2017
@olivere olivere merged commit 3c1e4cf into olivere:release-branch.v2 Sep 15, 2017
@olivere
Copy link
Owner

olivere commented Sep 15, 2017

Thanks.

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

Successfully merging this pull request may close these issues.

None yet

2 participants