Hi Doug,

Thank you for your quick response and comprehensive explanation. It does 
make sense.

We are using cross_fields (with the "and" operator) because we want to make 
sure that the documents returned contain *all* the search terms somewhere. 

For example, the search for "100 john smith" would return only one 
document. ("john smith" matches the name and "100" matches the address")

We expect no results for "200 john smith" as 200 appears nowhere.

But if we search for "john smith" we should get both documents back and the 
document with "john smith" should be the first one is the list (since terms 
"john" "smith" matches on the same field).

Is there possible to accomplish this with best_fields or most_fields?

Thanks again,

Andre

-- 
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/b9f21865-c060-434e-b456-80a230ac6439%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to