Skip to content

Commit

Permalink
fix field name for sparse vector query
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Dec 5, 2024
1 parent efbdefc commit 4af07d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public QueryBuilder semanticQuery(InferenceResults inferenceResults, Integer req
}

TextExpansionResults textExpansionResults = (TextExpansionResults) inferenceResults;
yield new SparseVectorQueryBuilder(name(), textExpansionResults.getWeightedTokens(), null, null, null, null);
yield new SparseVectorQueryBuilder(inferenceResultsFieldName, textExpansionResults.getWeightedTokens(), null, null, null, null);
}
case TEXT_EMBEDDING -> {
if (inferenceResults instanceof MlTextEmbeddingResults == false) {
Expand Down

0 comments on commit 4af07d1

Please sign in to comment.