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

SRCH-1716 use fractional weight to demote by extension #125

Merged

Conversation

MothOnMars
Copy link
Contributor

Negative weights in function scores are disallowed in Elasticsearch 7. This updates our function score to use a fractional value instead, which accomplishes the desired demotion of documents with certain filetypes.

@MothOnMars MothOnMars merged commit ae3a23c into GSA:release/elasticsearch_7 Nov 6, 2020
@MothOnMars MothOnMars deleted the function_score_query_1716 branch November 6, 2020 16:01
MothOnMars added a commit that referenced this pull request Nov 19, 2020
… 7 (#127)

* SRCH-1728 change 'template' to 'index_patterns' (#126)
* SRCH-1717 remove references to deprecated _all field (#124)
* SRCH-1716 use fractional weight to demote by extension (#125)
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.

2 participants