For example, if something has a higher favorites_count I want it to be more relevant, or if it is updated more recently it is more relevant. Is there a way to do this? This is different than the standard boost functionality, because these fields don't contain keywords, they contain a numeric value.
相关问题
- not found value index error on elastic4s
- Issues when replicating from couchbase bucket to e
- Is there a way to sort an elasticsearch _score by
- failed to send join request to master
- Multi match boolean boost
相关文章
- es 单字段多分词器时,textField.keyword无法高亮
- ElasticSearch: How to search for a value in any fi
- What are the disadvantages of ElasticSearch Doc Va
- NoNodeAvailableException[None of the configured no
- Types cannot be provided in put mapping requests,
- Elasticsearch cluster 'master_not_discovered_e
- Does AWS RDS encryption with KMS affect performanc
- Locality-sensitive hashing - Elasticsearch
You can use
function_score
to boost your doc base on a custom formula. Refer here (script_score
section) for more details: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.htmlYou can also use decay functions to boost recently created documents over older results, refer here for sample: http://www.elasticsearch.org/blog/0-90-4-released/
Then refer here for a more complex sample of using script to calculate score: http://jontai.me/blog/2013/01/advanced-scoring-in-elasticsearch/