php - Elastic Search: Boosting results -


i have many objects have been indexed in es. 2 of each object's properties "type" , "title". there way boost results if type in result set majority, title weighs more other properties such "description"?

edit: boosting properties. want, given characteristic of result set(most types similar), further boost field.

you can add boosting query:

for example:

"term": {         "terms": {           "value": "stranger fiction",           "boost": 1.8         } 

read more here: http://www.elasticsearch.org/guide/reference/mapping/boost-field/


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -