Hi Vineeth thanks so much this looks like it will help me. I have another question, if you don't mind... (or should I post a new question?)
I would like to specify my top results based on: 1) A description field and tags both are hits. 2) Description field only is a hit. 3) Tags only have a hit. Is there something I can learn about to understand this? Thanks Eric On Friday, August 22, 2014 10:50:48 AM UTC-7, vineeth mohan wrote: > > 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] > <javascript:>> 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] <javascript:>. >> 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/c3614746-8aa8-43d6-bda6-00787bc8abfa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
