Index using the boosted value


(ylbaba) #1

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
weight.
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: http://elasticsearch-users.115913.n3.nabble.com/index-using-the-boosted-value-tp1200228p1200228.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #2