File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
server/src/main/java/org/elasticsearch/common/lucene/search/function Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2121import org .apache .lucene .search .ScorerSupplier ;
2222import org .apache .lucene .search .Weight ;
2323import org .apache .lucene .util .Bits ;
24- import org .elasticsearch .ElasticsearchException ;
2524import org .elasticsearch .common .io .stream .StreamInput ;
2625import org .elasticsearch .common .io .stream .StreamOutput ;
2726import org .elasticsearch .common .io .stream .Writeable ;
@@ -448,8 +447,13 @@ public float score() throws IOException {
448447 These scores are invalid for score based {@link org.apache.lucene.search.TopDocsCollector}s.
449448 See {@link org.apache.lucene.search.TopScoreDocCollector} for details.
450449 */
451- throw new IllegalArgumentException ("function score query returned an invalid score: "
452- + finalScore + " for doc: " + docId + "; score must be a non-negative real number" );
450+ throw new IllegalArgumentException (
451+ "function score query returned an invalid score: "
452+ + finalScore
453+ + " for doc: "
454+ + docId
455+ + "; score must be a non-negative real number"
456+ );
453457 }
454458 return finalScore ;
455459 }
You can’t perform that action at this time.
0 commit comments