# How I partially filter in tab discover

**URL:** <https://discuss.elastic.co/t/how-i-partially-filter-in-tab-discover/90254>\
**Category:** Kibana\
**Created:** [June 21, 2017, 9:37am UTC](https://discuss.elastic.co/t/how-i-partially-filter-in-tab-discover/90254 "2017-06-21T09:37:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xavi23](https://avatars.discourse-cdn.com/v4/letter/x/db5fbb/32.png) [@xavi23](https://discuss.elastic.co/u/xavi23)\
**Post date:** [June 21, 2017, 9:37am UTC](https://discuss.elastic.co/t/how-i-partially-filter-in-tab-discover/90254/1 "2017-06-21T09:37:33Z")

</div>

Hello everyone,

I've a text type field and i want to partially filter in this field:

My index:

put test  
{  
"settings": {  
"analysis": {  
"analyzer": {  
"my\_analyzer": {  
"tokenizer" : "standard",  
"stopwords":["_spanish_","_english_","_catalan_"],  
"filter":["standard", "asciifolding","stemmer"]

```
    }
    }
}

```

},  
"mappings" : {  
"test" : {  
"properties" : {  
"field":{"type":"text","analyzer":"my\_analyzer"}  
}  
}  
}  
}

The field contain threeJSON:

put test/test/1  
{  
"field":"Hello"  
}

put test/test/2  
{  
"field":"World"  
}

put test/test/3  
{  
"field":"Hello John"  
}

How I can filter the 'filed' contain 'he' and kiba return the information of the first and third JSON?

PD: Version ElastiSearch: 5.4

Thanks.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [June 21, 2017, 6:58pm UTC](https://discuss.elastic.co/t/how-i-partially-filter-in-tab-discover/90254/2 "2017-06-21T18:58:37Z")

</div>

Looks like you just need to use a wildcard.

Try:

```auto
GET test/test/_search
{
  "query": {
    "query_string": {
      "query": "He*"
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![xavi23](https://avatars.discourse-cdn.com/v4/letter/x/db5fbb/32.png) [@xavi23](https://discuss.elastic.co/u/xavi23)\
**Post date:** [June 22, 2017, 6:51am UTC](https://discuss.elastic.co/t/how-i-partially-filter-in-tab-discover/90254/3 "2017-06-22T06:51:12Z")

</div>

Wildcard is perfect.

Thanks.

---

<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 20, 2017, 6:51am UTC](https://discuss.elastic.co/t/how-i-partially-filter-in-tab-discover/90254/4 "2017-07-20T06:51:19Z")

</div>

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