Skip to content

Commit

Permalink
Draft solution
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Gaievski <[email protected]>
  • Loading branch information
martin-gaievski committed Nov 16, 2024
1 parent 0119907 commit 898b34c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.apache.lucene.search.BooleanClause;
import org.apache.lucene.search.BooleanQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.ScoreMode;
import org.opensearch.common.settings.Settings;
import org.opensearch.index.mapper.MapperService;
import org.opensearch.neuralsearch.query.HybridQuery;
Expand Down Expand Up @@ -179,7 +180,7 @@ protected boolean searchWithCollector(
searcher,
query,
collectors,
QueryCollectorContext.EMPTY_CONTEXT,
QueryCollectorContext.getContextForScoreMode(ScoreMode.TOP_SCORES),
hasFilterCollector,
hasTimeout
);
Expand Down Expand Up @@ -207,7 +208,7 @@ protected boolean searchWithCollector(
searcher,
query,
collectors,
QueryCollectorContext.EMPTY_CONTEXT,
QueryCollectorContext.getContextForScoreMode(ScoreMode.TOP_SCORES),
hasFilterCollector,
hasTimeout
);
Expand Down

0 comments on commit 898b34c

Please sign in to comment.