Skip to content

[Approximation Framework] Extend approximation to single clause boolean queries #18692

@sawansri

Description

@sawansri

Is your feature request related to a problem? Please describe

Currently single clause boolean queries are unwrapped in BooleanQuery.rewrite() as an optimization in Lucene. This is fine for queries containing a non approximate-able clause but we miss out on potential query speed up if the clause can be approximated.

Describe the solution you'd like

Implement ApproximateBooleanQuery which flattens the boolean query and applies approximation if possible.

Related component

Search:Performance

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

🆕 New

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions