Skip to content

Do not pass negative scores into function_score or script_score queries

Codecov / codecov/patch failed May 14, 2024 in 1s

33.33% of diff hit (target 71.42%)

View this Pull Request on Codecov

33.33% of diff hit (target 71.42%)

Annotations

Check warning on line 62 in server/src/main/java/org/opensearch/common/lucene/search/function/ScriptScoreFunction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/common/lucene/search/function/ScriptScoreFunction.java#L61-L62

Added lines #L61 - L62 were not covered by tests

Check warning on line 114 in server/src/main/java/org/opensearch/common/lucene/search/function/ScriptScoreFunction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/common/lucene/search/function/ScriptScoreFunction.java#L114

Added line #L114 was not covered by tests

Check warning on line 128 in server/src/main/java/org/opensearch/common/lucene/search/function/ScriptScoreFunction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/src/main/java/org/opensearch/common/lucene/search/function/ScriptScoreFunction.java#L128

Added line #L128 was not covered by tests