Hello Eric ,

Please explore phrase query -
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-match-query.html#_phrase

Also there is query_string type which has support for AND , OR etc and even
phrase query -
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-dsl-query-string-query

Hope that helps.

Thanks
           Vineeth


On Fri, Aug 22, 2014 at 11:17 PM, Eric Greene <[email protected]> wrote:

> Hi everyone, I would like to take a search query with multiple terms and
> possibly define an order of precedence in the following way.
>
> (bare with me as I become familiar with elasticsearch lingo!)
>
> Can I specify that the exact match is first (The search words "word A word
> B" matches "word A + word B"),
> then it matches "word B + word A",
> then just "word B" is found,
> then either "word A or word B"
>
> I'd like to understand how to shuffle the above variations as well?
>
> Thanks much.
>
>  --
> 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/405bb3f0-d496-4c3d-8aa8-ec7afaf2075f%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/405bb3f0-d496-4c3d-8aa8-ec7afaf2075f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGdPd5mGsXg5q1u26aVRcXSn_sUom2R25koZ23HLvVOMEcQSbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to