How to apply score/boost factor in ElasticSearch1.0.0 on filters


(Kina Shah) #1

Hi,

I am new to ElasticSearch. I want to apply some boost factor on the filter
that I have. Is it possible to apply score/boost factor on filters. if yes,
can some one show me how to do that in java?

Thanks!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6e64c46f-69c0-417a-bec5-9857f9fbe3d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Binh Ly-2) #2

The function_score query will allow you to define multiple filters, each of
which you can apply a boost_factor or any custom score you want:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_using_function_score

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f96ed3bf-ccdb-48ab-b53a-346b3cc1e612%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3