Hi there,
I have the following query:
"query": {
"multi_match": {
"operator": "and",
"type": "cross_fields",
"query": "john smith",
"fields": ["name", "address"]
}
}
That will match these documents:
Name: James *Smith*
Address: 325 *John* Street
Name: *John Smith* Junior
Address: 100 Baryl Street
Is there a way to give the last document a higher score since the terms
"john" "smith" have two matches on the same field?
Notice that behavior is a little bit different from the one using
match_phrase with slop because the query can still match terms in any of
the fields but score higher when there are more matches on the same field.
Thanks,
Andre
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/cc76f51b-3721-4978-a3ed-e59ff4c8f138%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.