Skip to content

[Feature Request] Intra-segment Concurrent Search #18338

@asimmahmood1

Description

@asimmahmood1

Is your feature request related to a problem? Please describe

As of OpenSearch 3 with auto search mode, we now support concurrent segment search by default. This trades hgher resource use for the benefit of lower latency gains, as long there are mutltiple segments to search. With a single segment or very large segment, Lucene now provides intra-segment slicing: apache/lucene#13542

Current this is not enabled by default in Lucene because of some regressions: apache/lucene#13745. This issue will track the Lucene progress in parallel, but there are many optimizations withing OpenSearch that assume we can slice a segment cleanly, which isn't true, e.g. BKD trees.

Describe the solution you'd like

  1. Track down which queries show regression when intra-segment search is enabled
  2. Come up with a plan to tackle the regressiona and take advantage of intra-segment search
  3. Clean up tech debt from OS concurrent segment search work (PR TBD)

Related component

Search:Performance

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Projects

Status

🆕 New

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions