You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2023/05/30 15:29:27 UTC
[lucene] 04/04: Word2VecSynonymProvider to use standard Integer max value for hnsw searches (#12235) We observed this change was not ported previously from main in an old cherry-pick
This is an automated email from the ASF dual-hosted git repository.
abenedetti pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
commit e134578f4354eff56b6c69646b6179ebcf404828
Author: Patrick Zhai <zh...@users.noreply.github.com>
AuthorDate: Tue May 16 07:20:31 2023 +0100
Word2VecSynonymProvider to use standard Integer max value for hnsw searches (#12235)
We observed this change was not ported previously from main in an old cherry-pick
---
.../lucene/analysis/synonym/word2vec/Word2VecSynonymProvider.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/word2vec/Word2VecSynonymProvider.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/word2vec/Word2VecSynonymProvider.java
index 167d94fb6e7..4660879922e 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/word2vec/Word2VecSynonymProvider.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/word2vec/Word2VecSynonymProvider.java
@@ -85,7 +85,7 @@ public class Word2VecSynonymProvider {
SIMILARITY_FUNCTION,
hnswGraph,
null,
- word2VecModel.size());
+ Integer.MAX_VALUE);
int size = synonyms.size();
for (int i = 0; i < size; i++) {