# HELP - how to boost while indexing a couchdb with elastic search

**URL:** <https://discuss.elastic.co/t/help-how-to-boost-while-indexing-a-couchdb-with-elastic-search/8281>\
**Category:** Elasticsearch\
**Created:** [July 2, 2012, 11:28am UTC](https://discuss.elastic.co/t/help-how-to-boost-while-indexing-a-couchdb-with-elastic-search/8281 "2012-07-02T11:28:20Z")\
**Posts on this page:** 3\
**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:** [July 2, 2012, 11:28am UTC](https://discuss.elastic.co/t/help-how-to-boost-while-indexing-a-couchdb-with-elastic-search/8281/1 "2012-07-02T11:28:20Z")

</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:** ![shadow](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@shadow](https://discuss.elastic.co/u/shadow)\
**Post date:** [July 2, 2012, 11:31am UTC](https://discuss.elastic.co/t/help-how-to-boost-while-indexing-a-couchdb-with-elastic-search/8281/2 "2012-07-02T11:31:47Z")

</div>

Just to clarify - I'm trying to index specific fields in a document, and not the entire doc.

I'm also looking for examples for both boosting while indexing, and boosting at the search time. I tried implementing boosting at search time too, but didn't get any success...

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/help-how-to-boost-while-indexing-a-couchdb-with-elastic-search/8281/3 "2017-07-06T03:21:48Z")

</div>


