# Setting up boost per document (per logged in user) - proper way to structure?

**URL:** <https://discuss.elastic.co/t/setting-up-boost-per-document-per-logged-in-user-proper-way-to-structure/6966>\
**Category:** Elasticsearch\
**Created:** [March 12, 2012, 7:58am UTC](https://discuss.elastic.co/t/setting-up-boost-per-document-per-logged-in-user-proper-way-to-structure/6966 "2012-03-12T07:58:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohan/32/2958_2.png) [@rohan](https://discuss.elastic.co/u/rohan)\
**Post date:** [March 12, 2012, 7:58am UTC](https://discuss.elastic.co/t/setting-up-boost-per-document-per-logged-in-user-proper-way-to-structure/6966/1 "2012-03-12T07:58:51Z")

</div>

Hi there,

ElasticSearch newbie here. I'm trying to build a search platform that  
will add boost to specific documents based on user selection. For  
example, using the query "foo" if I have the following hits with their  
scores:

Foo 1  
Bar 2  
Baz 3

.. if I were to click on Baz, the subsequent fuzzy search query for  
"foo" would put Baz at the top. My thinking was to set up a boost  
field per document (following this: [http://www.elasticsearch.org/guide/reference/mapping/boost-field.html](http://www.elasticsearch.org/guide/reference/mapping/boost-field.html)  
), and increment the boost value on user click. I was also thinking of  
creating a new index per user. Is this the correct way to approach  
this? I would only have about 10 users and thus 10 indexes per  
instance, but the data set is a good size (3mm records). Should I be  
approaching this using a different method? Also, for optimal searches  
for "foo" to immediately match "Foo" as result 1, should I be using  
the "text" query method?

Thanks in advance.

---

<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:36am UTC](https://discuss.elastic.co/t/setting-up-boost-per-document-per-logged-in-user-proper-way-to-structure/6966/2 "2017-07-06T03:36:24Z")

</div>


