# Index using the boosted value

**URL:** <https://discuss.elastic.co/t/index-using-the-boosted-value/3227>\
**Category:** Elasticsearch\
**Created:** [August 18, 2010, 6:11am UTC](https://discuss.elastic.co/t/index-using-the-boosted-value/3227 "2010-08-18T06:11:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ylbaba](https://avatars.discourse-cdn.com/v4/letter/y/e9a140/32.png) [@ylbaba](https://discuss.elastic.co/u/ylbaba)\
**Post date:** [August 18, 2010, 6:11am UTC](https://discuss.elastic.co/t/index-using-the-boosted-value/3227/1 "2010-08-18T06:11:52Z")

</div>

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](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](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:20am UTC](https://discuss.elastic.co/t/index-using-the-boosted-value/3227/2 "2017-07-06T04:20:38Z")

</div>


