Skip to content

[FEATURE] Implement QueryCollectorContextSpecFactory to improve performance of Hybrid query #1428

Open
@vibrantvarun

Description

@vibrantvarun

Is your feature request related to a problem?

Recently, in OpenSearch core we introduced interfaces like QueryCollectorContextFactory and QueryCollectorContextSpec. We should implement them in Hybrid query to improve its performance. See issue opensearch-project/OpenSearch#18278 for more details.

What solution would you like?

  1. Remove HybridQueryAggregationProcessor for initializing HybridCollectorManager.
  2. Implement interfaces QueryCollectorContextFactory and QueryCollectorContextSpec.
  3. Inject QueryCollectorContextSpec for hybrid query so that OpenSearch can create QueryCollectorContext out of it.
  4. For non concurrent search, provide logic of createCollector and collectorManager in QueryCollectorContextSpec.
  5. For concurrent search, optimize HybridCollectorManager.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions