not_analyzed String search


(Messias) #1

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0b608e49-e4e5-47a2-a856-079bf69c51d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Masaru Hasegawa) #2

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) 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0b608e49-e4e5-47a2-a856-079bf69c51d4%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/etPan.54c0a371.216231b.1877%40citra.local.
For more options, visit https://groups.google.com/d/optout.


(Messias-2) #3

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
<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 <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0b608e49-e4e5-47a2-a856-079bf69c51d4%40googlegroups.com.

For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/61941440-e59e-47a5-8220-72b6e8f87f1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4