Yeah. But I’d recommend not using boost in mapping but at query time.
More flexible.

-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr 
<https://twitter.com/elasticsearchfr> | @scrutmydocs 
<https://twitter.com/scrutmydocs>



> Le 10 févr. 2015 à 09:29, tao hiko <[email protected]> a écrit :
> 
> Hi David
> 
> Thank you for your information, more question; Can I set "boost" or priority 
> on each fields in mapping? if I use "term query" instead of "term filter".
> 
> Hiko
> 
> 
> On Tuesday, February 10, 2015 at 3:19:26 PM UTC+7, David Pilato wrote:
> A filter does not participate in scoring.
> But using 
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html
>  
> <http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html>
>  you can assign a score to a filter.
> 
> My 2 cents
> 
> -- 
> David Pilato | Technical Advocate | Elasticsearch.com 
> <http://elasticsearch.com/>
> @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr 
> <https://twitter.com/elasticsearchfr> | @scrutmydocs 
> <https://twitter.com/scrutmydocs>
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/656892e4-c945-4d14-b81a-90087a31147c%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/elasticsearch/656892e4-c945-4d14-b81a-90087a31147c%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/26163CAF-0F92-4CB5-8F6B-FA31933ECD0F%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to