Hi,
Thanks for you reply. I would like to know what's the DISPLAY_NAME^2 for.
It that indicated priority should be given to display_name field ?
Also i tried the following :
{
"from" : 0,
"size" : 100,
"query" : {
"filtered" : {
"query" : {
"multi_match": {
"query": "love",
"fields": [ "DISPLAY_NAME^3", "LONG_DESCRIPTION",
"SHORT_DESCRIPTION", "PERFORMER" ]
}
},
"filter" : {
"query" : {
"bool" : {
"must" : {
"term" : {
"CHANNEL_ID" : "1"
}
}
}
}
}
}
}
}
However still i have found some records without love in DISPLAY_NAME
appear before the one that have love in it.
eg :
1. "DISPLAY_NAME": "Singing Cowboy", "LONG_DESCRIPTION":
null, "PERFORMER": "Love",
2. "DISPLAY_NAME": "Love Is More Than Words Or Bet", "LONG_DESCRIPTION":
null,"PERFORMER": "Love",
Thanks.
On Fri, Mar 28, 2014 at 9:27 PM, Binh Ly <[email protected]> wrote:
> I'd start with a simple multi_match query:
>
> {
> "query": {
> "multi_match": {
> "query": "love",
> "fields": [ "DISPLAY_NAME^2", "LONG_DESCRIPTION",
> "SHORT_DESCRIPTION" ]
> }
> }
> }
>
> Yes relevancy is based on the score.
>
> --
> 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/RXuuSlkDSyA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/ae927bdc-1590-471f-b8b9-d950721c3ad2%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/ae927bdc-1590-471f-b8b9-d950721c3ad2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
Regards,
Chee Hoo
--
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/CAGS0%2Bg9XM9oRJ8ywu-ex93Zj2JbOtWNUYYae5FdgWyNgdWnXMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.