# Elastic index analyzed but not searchable

**URL:** <https://discuss.elastic.co/t/elastic-index-analyzed-but-not-searchable/27205>\
**Category:** Elasticsearch\
**Created:** [August 11, 2015, 4:39pm UTC](https://discuss.elastic.co/t/elastic-index-analyzed-but-not-searchable/27205 "2015-08-11T16:39:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrankC](https://avatars.discourse-cdn.com/v4/letter/f/ed655f/32.png) [@FrankC](https://discuss.elastic.co/u/FrankC)\
**Post date:** [August 11, 2015, 4:39pm UTC](https://discuss.elastic.co/t/elastic-index-analyzed-but-not-searchable/27205/1 "2015-08-11T16:39:56Z")

</div>

I loaded sample data below using a template. The "str\_type\_analyzed" field is set to "analyzed". However, in Kibana 4 I do not get any hits when I search for "red". It does not matter if I type use double quotes or not. I have loaded other data w/o templates and had no problem with searches. When I use visualize I can see that this field was tokenized. Any help is appreciated. Thanks, Frank.

My two rows of data:  
1ABC|2015-08-11 08:52:10.052|123|500.25|"This car is red"|"Red Ford"  
2DEF|2015-07-11 08:52:10.052|456|200.25|"This car is blue"|"Blue Ford"

my template:

{  
"template" : "maptest",  
"order": 1,  
"mappings" : {  
"_default_" : {  
"\_all" : {"enabled" : false},  
"properties" : {  
"pk\_col": { "type": "string", "index": "not\_analyzed","doc\_values" : true },  
"dt\_type": { "type": "date", "index": "not\_analyzed", "format": "yyyy-MM-dd HH:mm:ss.SSS", "doc\_values" : true},  
"int\_type": { "type": "integer","doc\_values" : true },  
"float\_type": { "type": "float","doc\_values" : true },  
"str\_type\_analyzed": { "type": "string" , "index": "analyzed" },  
"str\_type\_not\_analyzed": { "type": "string", "index": "not\_analyzed" ,"doc\_values" : true }  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [August 11, 2015, 5:51pm UTC](https://discuss.elastic.co/t/elastic-index-analyzed-but-not-searchable/27205/2 "2015-08-11T17:51:51Z")

</div>

Can you rmake a recreation of the problem using either Sense or a bash script with curl commands?

---

<div class="post-metadata">

**Author:** ![FrankC](https://avatars.discourse-cdn.com/v4/letter/f/ed655f/32.png) [@FrankC](https://discuss.elastic.co/u/FrankC)\
**Post date:** [August 11, 2015, 6:07pm UTC](https://discuss.elastic.co/t/elastic-index-analyzed-but-not-searchable/27205/3 "2015-08-11T18:07:31Z")

</div>

Hi Adrien,

I new to ES. I am running this on my Windows laptop for now. I can create a batch file with the curl in it. Does that work?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [August 11, 2015, 6:16pm UTC](https://discuss.elastic.co/t/elastic-index-analyzed-but-not-searchable/27205/4 "2015-08-11T18:16:35Z")

</div>

Yes, that would work for me.

---

<div class="post-metadata">

**Author:** ![FrankC](https://avatars.discourse-cdn.com/v4/letter/f/ed655f/32.png) [@FrankC](https://discuss.elastic.co/u/FrankC)\
**Post date:** [August 11, 2015, 6:51pm UTC](https://discuss.elastic.co/t/elastic-index-analyzed-but-not-searchable/27205/5 "2015-08-11T18:51:00Z")

</div>

Adrien.... I think I figured it out. Stumbled onto it while re-reading the docs again.... look likes " \_all" is used for searches if no field is specified.

For example: it returns data when I use curl -XGET [http://localhost:9200/maptest/\_search?q=str\_type\_analyzed:blue](http://localhost:9200/maptest/_search?q=str_type_analyzed:blue). However, I do not get data when a field is not specified.

So I updated my template to include: "\_all" : {"enabled" : true} and re-freshed ES.

Now when I type in "blue" in the Kibana search bar I get a hit.

Regards,  
Frank

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [August 12, 2015, 4:52pm UTC](https://discuss.elastic.co/t/elastic-index-analyzed-but-not-searchable/27205/6 "2015-08-12T16:52:35Z")

</div>

I'm happy you figured it out. Thanks for sharing your fix!

---

<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 5, 2017, 11:56pm UTC](https://discuss.elastic.co/t/elastic-index-analyzed-but-not-searchable/27205/7 "2017-07-05T23:56:10Z")

</div>


