Re: Best field type for boosting all documents

2019-09-16 Thread Paras Lehana
Hey Ashwin, We, at Auto-Suggest, had the similar requirement. We wanted to boost suggestions as per their demand. For this, we also introduced a new *integer* field *demand*. We simply boosted it by (we use some mathematical transformations so showing the basic version here): *&boost=demand* We

Best field type for boosting all documents

2019-09-16 Thread Ashwin Ramesh
Hi everybody, We have a usecase where we want to push a popularity boost for each document in our collection. When a user searches for any term, we would like to arbitrarily add an additional boost by this value (which is different for each document). E.g. q=foo&boost=def(popularityBoostField,1)