# not\_analyzed String search

**URL:** <https://discuss.elastic.co/t/not-analyzed-string-search/21757>\
**Category:** Elasticsearch\
**Created:** [January 21, 2015, 6:17pm UTC](https://discuss.elastic.co/t/not-analyzed-string-search/21757 "2015-01-21T18:17:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Messias](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Messias](https://discuss.elastic.co/u/Messias)\
**Post date:** [January 21, 2015, 6:17pm UTC](https://discuss.elastic.co/t/not-analyzed-string-search/21757/1 "2015-01-21T18:17:47Z")

</div>

Hi,

I have the following issue when I search on a not\_analyzed String.

Mapping:  
filename: {  
type: "string",  
index: "not\_analyzed"  
}

field: "filename"  
value: "Stream\_Flash\_Video\_129518.log"

query\_string: filename:_lash_ -- get results  
query\_string: filename:_Flash_ -- get no results  
query\_string: filename:_flash_ -- get no results  
query\_string: filename:_129518_ -- get results

On an analyzed filed it works.  
Best regards  
Messias

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0b608e49-e4e5-47a2-a856-079bf69c51d4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0b608e49-e4e5-47a2-a856-079bf69c51d4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![masaru](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@masaru](https://discuss.elastic.co/u/masaru)\
**Post date:** [January 22, 2015, 7:13am UTC](https://discuss.elastic.co/t/not-analyzed-string-search/21757/2 "2015-01-22T07:13:57Z")

</div>

Hi,

You’d need to set lowercase\_expanded\_terms to false in query string query.  
It’s true by default. That’s why "_Flash_” doesn't get any result.

Masaru

On January 22, 2015 at 03:17:51, Messias ([schubert.torsten82@gmail.com](mailto:schubert.torsten82@gmail.com)) wrote:

> Hi,
> 
> I have the following issue when I search on a not\_analyzed String.
> 
> Mapping:  
> filename: {  
> type: "string",  
> index: "not\_analyzed"  
> }
> 
> field: "filename"  
> value: "Stream\_Flash\_Video\_129518.log"
> 
> query\_string: filename:_lash_ -- get results  
> query\_string: filename:_Flash_ -- get no results  
> query\_string: filename:_flash_ -- get no results  
> query\_string: filename:_129518_ -- get results
> 
> On an analyzed filed it works.  
> Best regards  
> Messias
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch"  
> group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0b608e49-e4e5-47a2-a856-079bf69c51d4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0b608e49-e4e5-47a2-a856-079bf69c51d4%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.54c0a371.216231b.1877%40citra.local](https://groups.google.com/d/msgid/elasticsearch/etPan.54c0a371.216231b.1877%40citra.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Messias\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/messias_2/32/74381_2.png) [@Messias\_2](https://discuss.elastic.co/u/Messias_2)\
**Post date:** [January 22, 2015, 9:32am UTC](https://discuss.elastic.co/t/not-analyzed-string-search/21757/3 "2015-01-22T09:32:30Z")

</div>

Hi,

THX with this option it works fine.

Have a nice day guys.

Best regards  
Messias

Am Donnerstag, 22. Januar 2015 08:15:12 UTC+1 schrieb Masaru Hasegawa:

> Hi,
> 
> You’d need to set lowercase\_expanded\_terms to false in query string query.  
> It’s true by default. That’s why "_Flash_” doesn't get any result.
> 
> Masaru
> 
> On January 22, 2015 at 03:17:51, Messias ([schubert....@gmail.com](mailto:schubert....@gmail.com)  
> \<javascript:\>) wrote:
> 
> > Hi,
> > 
> > I have the following issue when I search on a not\_analyzed String.
> > 
> > Mapping:  
> > filename: {  
> > type: "string",  
> > index: "not\_analyzed"  
> > }
> > 
> > field: "filename"  
> > value: "Stream\_Flash\_Video\_129518.log"
> > 
> > query\_string: filename:_lash_ -- get results  
> > query\_string: filename:_Flash_ -- get no results  
> > query\_string: filename:_flash_ -- get no results  
> > query\_string: filename:_129518_ -- get results
> > 
> > On an analyzed filed it works.  
> > Best regards  
> > Messias
> > 
> > --  
> > You received this message because you are subscribed to the Google  
> > Groups "elasticsearch"  
> > group.  
> > To unsubscribe from this group and stop receiving emails from it, send  
> > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/0b608e49-e4e5-47a2-a856-079bf69c51d4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0b608e49-e4e5-47a2-a856-079bf69c51d4%40googlegroups.com).
> 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/61941440-e59e-47a5-8220-72b6e8f87f1d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/61941440-e59e-47a5-8220-72b6e8f87f1d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:37am UTC](https://discuss.elastic.co/t/not-analyzed-string-search/21757/4 "2017-07-06T00:37:17Z")

</div>


