zhaih commented on code in PR #12246:
URL: https://github.com/apache/lucene/pull/12246#discussion_r1199956128


##########
lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/word2vec/Word2VecSynonymProvider.java:
##########
@@ -42,6 +42,7 @@ public class Word2VecSynonymProvider {
   private static final VectorSimilarityFunction SIMILARITY_FUNCTION =
       VectorSimilarityFunction.DOT_PRODUCT;
   private static final VectorEncoding VECTOR_ENCODING = VectorEncoding.FLOAT32;
+  private static final int NO_LIMIT_ON_VISITED_NODES = Integer.MAX_VALUE;
   private final Word2VecModel word2VecModel;
   private final HnswGraph hnswGraph;

Review Comment:
   I merged https://github.com/apache/lucene/pull/12257, but I think we still 
need to make a change here to declare it as `OnHeapHnswGraph` to make it work.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to