Hi,
Say I have a database of car models containing brand and model
| Brand | Model |
|---|---|
| Foo | Bar |
| Foo | Baz |
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.
- The
multi_matchbest_fieldsquery will not work because withANDoperator it will all terms must be present int a single field. WithORoperator 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
- The
multi_matchcross_fieldsquery will not work because neither fuzziness, nor boosting are supported. combined_fieldsdoes not support fuzziness
So what are my options?
Thanks in advance.