Commit 44d5bfb
committed
Gate hybrid collapse distinct-groups collection behind an opt-in index setting
Add index.neural_search.hybrid_collapse_distinct_groups_enabled
(dynamic, default false). The default keeps the existing behavior of
collecting the top-size documents per sub-query, preserving score
parity with the same hybrid query without collapse. When enabled,
HybridCollapsingTopGroupsCollector collects the top-size distinct
groups per sub-query instead, so the response contains size groups
whenever that many exist.
Resolves #1947
Signed-off-by: Yasutaka Hisano <yasutennis713@gmail.com>1 parent 16eac85 commit 44d5bfb
13 files changed
Lines changed: 2217 additions & 432 deletions
File tree
- src
- main/java/org/opensearch/neuralsearch
- plugin
- search
- collector
- query
- settings
- test/java/org/opensearch/neuralsearch
- collector
- e2e
- plugin
- search/collector
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| 380 | + | |
379 | 381 | | |
380 | 382 | | |
381 | 383 | | |
| |||
Lines changed: 201 additions & 250 deletions
Large diffs are not rendered by default.
0 commit comments