I ran the following two queries on v0.90.5:

POST /my_index/product/_search
> {"query":{"bool":{"must":[{"query_string":{"default_field":"*_all*
> ","query":"cinna"}}]}}}
>
 

> POST /my_index/product/_search
> {"query":{"bool":{"must":[{"query_string":{"default_field":"*name*
> ","query":"cinna"}}]}}}


The query with the "_all" field did not return any results but the one with 
"name" field returned 365 results.

The "name" field is mapped like so:

>             "name" : {
>                 "analyzer": "word_break",
>                 "type": "string"
>             },


Would/should this prevent it from falling under the "_all" grouping in 
searches? 

> {
>     "index":{
>         "analysis":{
>             "analyzer":{
>                 "word_break":{
>                     "type": "custom",
>                     "tokenizer": "standard",
>                     "filter":["word_delimiter","lowercase","custom_gram"]
>                 }
>             },
>             "filter":{
>                 "custom_gram":{
>                     "type":"ngram",
>                     "min_gram":2,
>                     "max_gram":7
>                 }
>             }
>         }
>     }
> }


-- 
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/ed30456a-f86b-49bf-af8f-979c58e74fa4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to