Skip to content

FlatObjectField will benefit from using IndexOrDocValuesQuery #11537

Open
@harshavamsi

Description

@harshavamsi

Is your feature request related to a problem? Please describe.
Similar to the efforts in #7057 and #11144, FlatObjectField has a bunch of MultiTermQueries that will benefit from being able to search documents when only doc_values is enabled and using IndexOrDocValuesQuery when it has both index and doc_values enabled.

Describe the solution you'd like
If only index is enabled, we return the existing query. If both index and doc_values are enabled we return a wrapped IndexOrDocValuesQuery. If only doc_values are enabled, we probably use SortedSetDocValuesField.newXyzQuery for range, fuzzy etc

Describe alternatives you've considered
Do nothing.

Metadata

Metadata

Assignees

Labels

SearchSearch query, autocomplete ...etcenhancementEnhancement or improvement to existing feature or request

Type

No type

Projects

Status

Later (6 months plus)

Status

In-Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions