not_analyzed String search

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

Why does filename:Flash get no results?
I dont understand the the logic that ES use. If I have a string with this
value.
And i use a regex .Flush. (what is sthe same as Flush) then it will
match.

How is it possible to search this value with a query_string?

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/f434f7da-2328-43bc-b113-06be660fd489%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Messias,

You should set “lowercase_expanded_terms” param to false.
Default it true.
See : Elasticsearch Platform — Find real-time answers at scale | Elastic

“query_string” query is changed automatically query-terms to lower-case in some cases.
i.e. wildcard, prefix, fuzzy…


Jun Ohtani
johtani@gmail.com
blog : http://blog.johtani.info
twitter : http://twitter.com/johtani

2015/01/22 3:34、Messias schubert.torsten82@gmail.com のメール:

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

Why does filename:Flash get no results?
I dont understand the the logic that ES use. If I have a string with this value.
And i use a regex .Flush. (what is sthe same as Flush) then it will match.

How is it possible to search this value with a query_string?

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/f434f7da-2328-43bc-b113-06be660fd489%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/B70A9D24-2180-4F18-B6C5-2F8653B4BB68%40gmail.com.
For more options, visit https://groups.google.com/d/optout.