Fuzzy query with term

How can i use fuzzy query with term. it is working if i pass a single value on term like:-
{
"from": 0,
"size": 1000,
"query": {
"bool": {
"must": [
{
"fuzzy" : {
"product_name" : {
"value": "man",
"boost": 1.0,
"fuzziness": 2,
"prefix_length": 0,
"max_expansions": 100
}
}
},
{
"bool": {
"must":
{
"term": {
"shop_available": 1 <=== this value
}
}

      }
    }
  ]
}

}
}

But what if i want to pass array in term like:-

{
"from": 0,
"size": 1000,
"query": {
"bool": {
"must": [
{
"fuzzy" : {
"product_name" : {
"value": "man",
"boost": 1.0,
"fuzziness": 2,
"prefix_length": 0,
"max_expansions": 100
}
}
},
{
"bool": {
"must":
{
"term": {
"shop_available": [1] <=== this value
}
}

      }
    }
  ]
}

}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.