For example with this mappings:
PUT /unit-test
{
"mappings": {
"properties": {
"name": { "type": "text" },
"landlords": {
"type": "nested",
"properties": {
"name": { "type": "text" }
}
}
}
}
}
If I have this document:
{
"name": "T2 - Boulevard Haussmann - P429",
"landlords": [
{ "name": "John Doe" }
]
}
I want "boulevard hausmann" and "boulevard haussman doe" to match but not "rue haussman" or "haussman jeanne".
I cannot use multi_match
with "operator": "and"
because landlords
are nested.