You probably want to "upgrade" to the match query - "text" queries are 
older and no longer exist in 1.x. But anyway when you query:

"match": { "f": "S Fun St" }

You are effectively doing (roughly):

f=S or f=fun or f=St

You could make it do AND if you want (in which case a match is only found 
if the document/field value contains all terms):

{
    "match" : {
        "f" : {
            "query" : "S Fun St",
            "operator" : "and"
        }
    }
}


You could also do OR with a minimum_should_match parameter to specify how 
many of the individual terms should match the document/field value:

{
    "match" : {
        "f" : {
            "query" : "S Fun St",
            "minimum_should_match" : 2
        }
    }
}


-- 
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/611427d1-cf08-4fec-a79d-b725a989ca86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to