Say I have a database of car models containing brand and model
So if I search for a
Foo Bar I want only the first document to match. If I search for just
Foo both documents above must be returned. Each field must be fuzzy and boosted.
best_fieldsquery will not work because with
ANDoperator it will all terms must be present int a single field. With
ORoperator it will return document even if only single field matches when two are requested.
- Copying fields into an "all" field will not work because individual fields cannot be boosted
cross_fieldsquery will not work because neither fuzziness, nor boosting are supported.
combined_fieldsdoes not support fuzziness
So what are my options?
Thanks in advance.