# Index time boost in multi\_field ignored?

**URL:** <https://discuss.elastic.co/t/index-time-boost-in-multi-field-ignored/14278>\
**Category:** Elasticsearch\
**Created:** [November 6, 2013, 1:12am UTC](https://discuss.elastic.co/t/index-time-boost-in-multi-field-ignored/14278 "2013-11-06T01:12:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)\
**Post date:** [November 6, 2013, 1:12am UTC](https://discuss.elastic.co/t/index-time-boost-in-multi-field-ignored/14278/1 "2013-11-06T01:12:36Z")

</div>

I am using multi\_field to combine several properties for searching instead  
of using \_all  
It looks like boost specified in my secondary fields are ignored. It worked  
fine with \_all but not with multifield

here is the snippet where I put very low boost for my all field (I feed  
dozens of properties into it with different boosts) but it has no effect

```
        "type": {
          "dynamic": "true",
          "properties": {
            "id": {
              "type": "integer",
              "include_in_all": false
            },
            "name": {
              "type": "multi_field",
              "path": "just_name",
              "fields": {
                "name": {
                  "type": "string",
                  "index_options": "offsets",
                  "boost": 0.3
                },
                "all": {
                  "type": "string",
                  "index_options": "offsets",
                  "boost": 0.01
                },
                "all_stem": {
                  "type": "string",
                  "index_options": "offsets",
                  "boost": 0.01
                }
              }
            }
          }
        }

```

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 6, 2013, 3:09am UTC](https://discuss.elastic.co/t/index-time-boost-in-multi-field-ignored/14278/2 "2013-11-06T03:09:26Z")

</div>

How do you build your query? Could you gist a full curl recreation?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 nov. 2013 à 02:12, AlexR [roytmana@gmail.com](mailto:roytmana@gmail.com) a écrit :

I am using multi\_field to combine several properties for searching instead of using \_all  
It looks like boost specified in my secondary fields are ignored. It worked fine with \_all but not with multifield

here is the snippet where I put very low boost for my all field (I feed dozens of properties into it with different boosts) but it has no effect

```
        "type": {
          "dynamic": "true",
          "properties": {
            "id": {
              "type": "integer",
              "include_in_all": false
            },
            "name": {
              "type": "multi_field",
              "path": "just_name",
              "fields": {
                "name": {
                  "type": "string",
                  "index_options": "offsets",
                  "boost": 0.3
                },
                "all": {
                  "type": "string",
                  "index_options": "offsets",
                  "boost": 0.01
                },
                "all_stem": {
                  "type": "string",
                  "index_options": "offsets",
                  "boost": 0.01
                }
              }
            }
          }
        }

```

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)\
**Post date:** [November 6, 2013, 3:27am UTC](https://discuss.elastic.co/t/index-time-boost-in-multi-field-ignored/14278/3 "2013-11-06T03:27:23Z")

</div>

{  
"query": {  
"bool": {  
"should": [  
{  
"match": {  
"all": {  
"query": "call",  
"type": "phrase",  
"slop": 1,  
"boost": 1.2,  
"analyzer": "stemmed\_no\_original"  
}  
}  
},  
{  
"match": {  
"all": {  
"query": "call",  
"operator": "and",  
"analyzer": "stemmed\_no\_original"  
}  
}  
}  
]  
}  
}  
}

if i replace "all" with "\_all" it works as expected (as far as boosts)  
prioritizing data supplied by other properties to my "all" multi\_field but  
when using my all everything is mixed together with no regard to boosts.

I should emphasize that mapping sample above is just a small part of my  
mapping where many properties contribute to the same all and all\_stem  
multi\_fields and I was hoping to control importance by using boost like I  
did when I used \_all.

If you think it should work, I will work on a simple recreation tomorrow. I  
will need to do it from scratch as my mapping is way to big

On Tuesday, November 5, 2013 8:12:36 PM UTC-5, AlexR wrote:

> I am using multi\_field to combine several properties for searching instead  
> of using \_all  
> It looks like boost specified in my secondary fields are ignored. It  
> worked fine with \_all but not with multifield
> 
> here is the snippet where I put very low boost for my all field (I feed  
> dozens of properties into it with different boosts) but it has no effect
> 
> ```
> "type": {
> "dynamic": "true",
> "properties": {
> "id": {
> "type": "integer",
> "include_in_all": false
> },
> "name": {
> "type": "multi_field",
> "path": "just_name",
> "fields": {
> "name": {
> "type": "string",
> "index_options": "offsets",
> "boost": 0.3
> },
> "all": {
> "type": "string",
> "index_options": "offsets",
> "boost": 0.01
> },
> "all_stem": {
> "type": "string",
> "index_options": "offsets",
> "boost": 0.01
> }
> }
> }
> }
> }
> 
> ```

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)\
**Post date:** [November 6, 2013, 3:48am UTC](https://discuss.elastic.co/t/index-time-boost-in-multi-field-ignored/14278/4 "2013-11-06T03:48:44Z")

</div>

here a gist of my mappings: [https://gist.github.com/roytmana/7330531](https://gist.github.com/roytmana/7330531)

Please let me know if you think boosting should work on all and all\_stem  
fields and I will work on recreation

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)\
**Post date:** [November 6, 2013, 4:40am UTC](https://discuss.elastic.co/t/index-time-boost-in-multi-field-ignored/14278/5 "2013-11-06T04:40:54Z")

</div>

here is recreation gist and query results

> <https://gist.github.com/roytmana/7330956>

On Tuesday, November 5, 2013 10:48:44 PM UTC-5, AlexR wrote:

> here a gist of my mappings: [create-award-index-gen.json · GitHub](https://gist.github.com/roytmana/7330531)
> 
> Please let me know if you think boosting should work on all and all\_stem  
> fields and I will work on recreation

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:08am UTC](https://discuss.elastic.co/t/index-time-boost-in-multi-field-ignored/14278/6 "2017-07-06T02:08:37Z")

</div>


