Hi all,

I bumped into this weird behavior of Elasticsearch: 
https://gist.github.com/huyphan/9888959

Basically what I did is to create a comma analyzer and and use it as the 
default one. Then I indexed this document

{
    "random_string" : "ABC,XYZ",
    "random_number" : "123456,7890123",
    "random_email"  : "[email protected],[email protected]"
}


Then search for it with query "123456", I got no hit. However if I did 
everything from scratch and indexed a slightly different document (it's 
actually the same doc with first field removed):

{
    "random_number" : "123456,7890123",
    "random_email"  : "[email protected],[email protected]"
}

 
The same old query did give me the result. I'm not sure what is the 
difference between the 2 documents that causes this behavior.


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/cf6e6972-ed30-4c42-adb5-b86d844a7167%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to