The boost field, like other special fields such as timestamp and id, is set
at the root level of a type, not as a property:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-boost-field.html

Perhaps I should have added this confusion as yet another reason why to
avoid the boost field:
http://blog.brusic.com/2014/02/document-boosting-in-elasticsearch.html

-- 
Ivan


On Wed, Feb 19, 2014 at 1:36 PM, JoeZ99 <[email protected]> wrote:

> according to martijin's remarks on
> https://groups.google.com/forum/#!topic/elasticsearch/A5DSgvnTnC0
> and also this issue
> https://github.com/elasticsearch/elasticsearch/issues/3752 ,
>
> search results should be sortable by _boost field.
>
> my particular setup:
>
> {
>   "product": {
>     "properties": {
>       "_boost": {
>         "type": "float",
>         "null_value": 1.0,
>         "index": "not_analyzed"
>         }
>     }
> }
>
> when using a match_all query, I can sort for any numeric field, but the
> "_boost", that does not work. I'm using 0.90.10
>
> Also, I don't know if this is related, but when I try to get the mapping
> via localhost:9200/index_name/_mapping , the _boost field doesn't show up.
> I guess it's because of its special nature.
>
>  --
> 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/e22fe979-1978-4e5d-8a7c-73a6dd238cdf%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/CALY%3DcQA-Xm9bwsG54uMzduqXcV2_%2BCPWrcD5zJWHFJMnLAzPYA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to