I am trying to search for a phrase where the one of the term i need to search using a wildcard.
This is the index
{ "id": 2, "name": "Some Other Pizzaeria"}
This is the query
{
"query": {
"span_near" : {
"clauses" : [
{"span_term" : { "name" : "Some" } },
{"span_term" : { "name" : "Other" } },
{ "span_multi" : { "match": { "wildcard": { "name" : "Pizza*" } } } `}
],
"slop" : 0,
"in_order" : true
}
}
}
This doesn't seem to be working.
Any help is appreciated.
Thank you