Skip to content

Commit

Permalink
Word2VecSynonymProvider to use standard Integer max value for hnsw se…
Browse files Browse the repository at this point in the history
…arches (#12235)

We observed this change was not ported previously from main in an old cherry-pick
  • Loading branch information
zhaih authored and alessandrobenedetti committed May 30, 2023
1 parent 26e4f06 commit e134578
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public List<TermAndBoost> getSynonyms(
SIMILARITY_FUNCTION,
hnswGraph,
null,
word2VecModel.size());
Integer.MAX_VALUE);

int size = synonyms.size();
for (int i = 0; i < size; i++) {
Expand Down

0 comments on commit e134578

Please sign in to comment.