# How to add boost during (before) indexing a couched using elastic search

**URL:** <https://discuss.elastic.co/t/how-to-add-boost-during-before-indexing-a-couched-using-elastic-search/8269>\
**Category:** Elasticsearch\
**Created:** [June 30, 2012, 12:03am UTC](https://discuss.elastic.co/t/how-to-add-boost-during-before-indexing-a-couched-using-elastic-search/8269 "2012-06-30T00:03:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadow](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@shadow](https://discuss.elastic.co/u/shadow)\
**Post date:** [June 30, 2012, 12:03am UTC](https://discuss.elastic.co/t/how-to-add-boost-during-before-indexing-a-couched-using-elastic-search/8269/1 "2012-06-30T00:03:37Z")

</div>

Hi all, based on some posts, I did the following:

curl -XPUT [http://localhost:9200/testdb/testdb/\_mapping](http://localhost:9200/testdb/testdb/_mapping) -d '{"myObj":{"prop1":{"boost":"25.0","include\_in\_all":"true"}}}'

and then did the indexing again:

curl -XPUT '[http://localhost:9200/\_river/testdb/\_meta](http://localhost:9200/_river/testdb/_meta)' -d '{  
"type" : "couchdb",  
"couchdb" : {  
"host" : "localhost",  
"port" : 5984,  
"db" : "testdb",  
"filter" : null  
},  
"index" : {  
"index" : "testdb",  
"type" : "testdb",  
"bulk\_size" : "100",  
"bulk\_timeout" : "10ms"  
}  
}'

but still I don't see any changes in results pre/post boosting. I did a strong "25" boost, just so that I can see some changes to make sure that this way of boosting at index time works...  
I read a few posts where people have done it, but can't seem to reproduce.

Can anyone tell me what I'm doing wrong, or tell me how to do the boosting at the time of indexing?

Thanks!

---

<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, 3:21am UTC](https://discuss.elastic.co/t/how-to-add-boost-during-before-indexing-a-couched-using-elastic-search/8269/2 "2017-07-06T03:21:56Z")

</div>


