Why can't I assign a boost to integer types in my mapping?

Every time I try to assign a boost to an integer I get the following error
message:

{"error":"UnsupportedOperationException[You cannot set an index-time boost:
norms are omitted for field 'field_name']","status":500}

Here is my mapping for that field:

"field_name" : { "type" : "integer", "index" : "not_analyzed",
"include_in_all" : true, "boost" : 10 }

This fails with other number types as well. Boosting works fine on string
types.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

{"error":"UnsupportedOperationException[You cannot set an index-time
boost: norms are omitted for field 'field_name']","status":500}

Norms are not stored for numeric fields, and index time boost is stored
in the "norms".

This is a good thing - norms add a lot to index size. Boost is easy to
apply at search time and gives you more flexibility:

{ match: { field_name: { query: 5, boost: 10 }}}

clint

--
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.
For more options, visit https://groups.google.com/groups/opt_out.