# A field is not search even after providing weights

**URL:** <https://discuss.elastic.co/t/a-field-is-not-search-even-after-providing-weights/166249>\
**Category:** Elasticsearch\
**Created:** [January 30, 2019, 1:28am UTC](https://discuss.elastic.co/t/a-field-is-not-search-even-after-providing-weights/166249 "2019-01-30T01:28:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shankarps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shankarps/32/78663_2.png) [@shankarps](https://discuss.elastic.co/u/shankarps)\
**Post date:** [January 30, 2019, 1:28am UTC](https://discuss.elastic.co/t/a-field-is-not-search-even-after-providing-weights/166249/1 "2019-01-30T01:28:43Z")

</div>

I have an index with the following sample vehicle data.

```
"_source": {
                "Type": "Van",
                "Year": 2016,
                "YearStr": "2016",
                "Make": "Ford",
                "Model": "Transit",
                "ColorDesc": "White"
            }

```

When I run a multi field search with same weights for Make, Model and YearStr like "Ford 2017", the search results match the Ford make, but does not select the records with the Year = 2017 first. It matches all years (like 2016, 2017, 2018, etc) in random order. They all have the same score.

Why do the records that have the year = 2017 not have a higher score? If a record has Make= Ford and Year = 2017, shouldn't it get a much higher score than one with Make= Ford and Year = 2018, since the Make and Year can boost the scores?

The query I send is this -\>

```
{
  "min_score": 20,
  "query": {
    "multi_match": {
      "fields": [
        "Make^25",
        "Model^25",
        "YearStr^25",
        "Type^20",
        "Color^15"
      ],
      "fuzziness": "AUTO",
      "operator": "or",
      "query": "Ford 2017",
      "type": "best_fields"
    }
  }
}

```

Thanks for reading. Any ideas will be helpful.

---

<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:** [February 27, 2019, 1:28am UTC](https://discuss.elastic.co/t/a-field-is-not-search-even-after-providing-weights/166249/2 "2019-02-27T01:28:52Z")

</div>

Closed on February 27, 2019, 1:28am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
