Re: not_analyzed String search

2015-01-22 Thread Messias
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 
> ) 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 .   
> > 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+unsubscr...@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.


Re: not_analyzed String search

2015-01-21 Thread 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.torste...@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+unsubscr...@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+unsubscr...@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.


Re: not_analyzed String search

2015-01-21 Thread Jun Ohtani
Hi Messias, 

You should set “lowercase_expanded_terms” param to false.
Default it true.
See : 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-dsl-query-string-query

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


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

> 2015/01/22 3:34、Messias  のメール:
> 
> 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+unsubscr...@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+unsubscr...@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.