Re: [PR] Refactor around NeighborArray [lucene]

2023-12-13 Thread via GitHub
zhaih merged PR #12910: URL: https://github.com/apache/lucene/pull/12910 -- 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.apach

Re: [PR] Refactor around NeighborArray [lucene]

2023-12-12 Thread via GitHub
zhaih commented on code in PR #12910: URL: https://github.com/apache/lucene/pull/12910#discussion_r1424037388 ## lucene/core/src/java/org/apache/lucene/util/hnsw/NeighborArray.java: ## @@ -51,45 +51,61 @@ public NeighborArray(int maxSize, boolean descOrder) { */ public vo

Re: [PR] Refactor around NeighborArray [lucene]

2023-12-12 Thread via GitHub
zhaih commented on code in PR #12910: URL: https://github.com/apache/lucene/pull/12910#discussion_r1424036233 ## lucene/core/src/java/org/apache/lucene/util/hnsw/NeighborArray.java: ## @@ -51,45 +51,61 @@ public NeighborArray(int maxSize, boolean descOrder) { */ public vo

Re: [PR] Refactor around NeighborArray [lucene]

2023-12-12 Thread via GitHub
zhaih commented on code in PR #12910: URL: https://github.com/apache/lucene/pull/12910#discussion_r1424031699 ## lucene/core/src/java/org/apache/lucene/util/hnsw/NeighborArray.java: ## @@ -51,45 +51,61 @@ public NeighborArray(int maxSize, boolean descOrder) { */ public vo

Re: [PR] Refactor around NeighborArray [lucene]

2023-12-12 Thread via GitHub
zhaih commented on code in PR #12910: URL: https://github.com/apache/lucene/pull/12910#discussion_r1424029197 ## lucene/core/src/java/org/apache/lucene/util/hnsw/NeighborArray.java: ## @@ -201,9 +225,69 @@ private int descSortFindRightMostInsertionPoint(float newScore, int boun

Re: [PR] Refactor around NeighborArray [lucene]

2023-12-12 Thread via GitHub
zhaih commented on code in PR #12910: URL: https://github.com/apache/lucene/pull/12910#discussion_r1424022318 ## lucene/core/src/java/org/apache/lucene/util/hnsw/NeighborArray.java: ## @@ -34,14 +34,14 @@ public class NeighborArray { private final boolean scoresDescOrder;

Re: [PR] Refactor around NeighborArray [lucene]

2023-12-11 Thread via GitHub
benwtrent commented on code in PR #12910: URL: https://github.com/apache/lucene/pull/12910#discussion_r1422799676 ## lucene/core/src/java/org/apache/lucene/util/hnsw/NeighborArray.java: ## @@ -201,9 +225,69 @@ private int descSortFindRightMostInsertionPoint(float newScore, int

[PR] Refactor around NeighborArray [lucene]

2023-12-11 Thread via GitHub
zhaih opened a new pull request, #12910: URL: https://github.com/apache/lucene/pull/12910 ### Description Not a huge refactor, basically: 1. Not share field (`nodes/scores`) outside 2. Move diversity check inside NeighborArray such that no one outside should tell Neighbo