Hello,

I'm encountering some unexpected behavior when using the regexp query. I 
get zero results when I use the syntax given in the 
documentation<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html>
:

{
    "regexp":{
        "name.first": "s.*y",
        "flags" : "INTERSECTION|COMPLEMENT|EMPTY"
    }
}


However, if I change the syntax to the following, results are returned:

{
    "regexp":{
        "name.first":{
            "value" : "s.*y",
            "flags" : "INTERSECTION|COMPLEMENT|EMPTY"
        }
    }
}

I tested this on 0.90.5, 1.0.0, and 1.1.0 with the same results. Can anyone 
confirm?

Jamil

-- 
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/52ad8946-2663-4533-a392-ff52155e8ec3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to