Thanks for the great explanation. Is there also a comparable equivalent 
when using query string? 

On Wednesday, March 26, 2014 2:25:05 PM UTC-6, Binh Ly wrote:
>
> 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/cd425185-e2e0-4d8f-ba1c-c357b54cd4d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to