I'm trying to do an exact match on an unknown number of fields.
I know that we can do a fulltext search on a set of fields using a multi_match like:
{
"multi_match": {
"fields":"fieldprefix_* ",
"query": "foo"
}
}
Now I would like to do the equivalent with a term query:
{
"term": {
"fields":"fieldprefix_* ",
"query": "foo"
}
}
Obviously, this notation is not supported as well as
{
"term": {
"fieldprefix_*": "foo"
}
}
So what is the closest syntax to achieve this use case? (of course, I don't know the name of all the fields starting by "fieldprefix_"
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.