# Like and where

**URL:** <https://discuss.elastic.co/t/like-and-where/22216>\
**Category:** Elasticsearch\
**Created:** [February 17, 2015, 6:47pm UTC](https://discuss.elastic.co/t/like-and-where/22216 "2015-02-17T18:47:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibi343](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@jibi343](https://discuss.elastic.co/u/jibi343)\
**Post date:** [February 17, 2015, 6:47pm UTC](https://discuss.elastic.co/t/like-and-where/22216/1 "2015-02-17T18:47:29Z")

</div>

how can do like and where condition in one query  
i was try this query but its not working fine  
in this query i need to satisfy both condition

{  
"query" : {  
"bool" : {  
"should" : [

```
        {
            "match": {
               "branch": "12"
            }
        }
        {
           "fuzzy" : {
              "tax_type" : {
                 "min_similarity" : 0.1,
                 "boost" : 3,
                 "value" : "single",
                 "prefix_length" : 1
              }
           }
        }
     ]
  }

```

}

}  
thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:32am UTC](https://discuss.elastic.co/t/like-and-where/22216/2 "2017-07-06T00:32:06Z")

</div>

Closed on July 6, 2017, 12:32am UTC


