I'm still not 100% sure I understand. Is this something that might work?
{
"query": {
"multi_match": {
"query": "bologna",
"fields": [
"locality",
"region"
]
}
},
"script_fields": {
"bologna_count": {
"script": "_index['locality']['bologna'].tf() + _index['region']['
bologna'].tf()"
}
}
}
--
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/b4ae9668-9416-4c43-8195-652c4da4fe62%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.