Index using the boosted value

I got sample data below in my hand:

"user" : {
"uid" : "user1",
"city" : "ca",
"gender" : "M",
"favorites" : ["sports", "news", "online_game"]

The problem is that values of field "favorites" already have their own
Like: W("sports")=2.0, W("news")=1.3, W("online_game")=0.6
means user1 prefers 3 things and likes sports most.

How can this be implemented in ES when index the user data so that it can
affect the result score?

p.s. The favorites values are fixed, a small number set. I'm considering
taking every fav as a boolean field.

View this message in context:
Sent from the ElasticSearch Users mailing list archive at