Thanks for your answer!
Unfortunately the phrase query is not enough, because I still want to keep
words optional. In my understanding, the phrase query requires all the
words of the query to be present.
Cheers,
Jeremy
On Fri, Aug 22, 2014 at 8:20 PM, vineeth mohan vm.vineethmohan@gmail.com
wrote:
Hello Jeremy ,
I feel what you are looking for is a phrase query . It takes into
consideration the order of words -
Elasticsearch Platform — Find real-time answers at scale | ElasticThanks
VineethOn Fri, Aug 22, 2014 at 3:28 PM, Jeremy merejy@gmail.com wrote:
In case of a multi-word query, is there a way to boost the first terms of
the query?For example, in the following query:
GET /my_index/my_type/_search
{
"query": {
"match": {
"title": "BROWN DOG!"
}
}
}"Brown" should be prioritized over "dog", therefore searching for "brown
dog" will not return the same scores as searching for "dog brown".
I'm ideally looking for a solution which work with N words and put weight
accordingly the number of words.Regards,
Jeremy--
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 elasticsearch+unsubscribe@googlegroups.com.To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/a53f5752-3da0-41de-b970-f84573b8f5a3%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/a53f5752-3da0-41de-b970-f84573b8f5a3%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 a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/ojEtydA4zAw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3D51EiC_SmiDXD0k2Yj0YacnvXVzaqUOshdkD81HFpgsA%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3D51EiC_SmiDXD0k2Yj0YacnvXVzaqUOshdkD81HFpgsA%40mail.gmail.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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGNSLEwjxRwLgfHAmNWxoGa0BX5ZSEtk6J0QFBvWCBcW8wX42Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.