# Analyzers: default and custom analyzers giving same score

**URL:** <https://discuss.elastic.co/t/analyzers-default-and-custom-analyzers-giving-same-score/152629>\
**Category:** Elasticsearch\
**Created:** [October 16, 2018, 10:28am UTC](https://discuss.elastic.co/t/analyzers-default-and-custom-analyzers-giving-same-score/152629 "2018-10-16T10:28:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulnama](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Post date:** [October 16, 2018, 10:28am UTC](https://discuss.elastic.co/t/analyzers-default-and-custom-analyzers-giving-same-score/152629/1 "2018-10-16T10:28:10Z")

</div>

Hi Team

Created two indices: one with custom analyzer and one uses default analyzer

settings for index 1:

```
PUT test_index
{
  "settings": {
    "analysis": {
      "filter": {
        "stop": {
          "type": "stop",
          "stopwords": "_english_"
        },
        "eng_keywords": {
          "type": "keyword_marker", 
          "keywords": ["windows","lazy"] 
        },
        "stemmer": {
          "type": "stemmer",
          "language": "light_english" 
        },
        "possessive_stemmer": {
          "type": "stemmer",
          "language": "possessive_english" 
        }
      },
      "analyzer": {
        "english": {
          "tokenizer": "standard",
          "filter": [
            "possessive_stemmer",
            "lowercase",
            "stop",
            "eng_keywords",
            "stemmer"
          ]
        }
      }
    }
  }
}

```

Second Index I created it with out giving any settings

```
PUT index
{ }

```

Whenever I test with sample data(same data in both the indices) and query them, both indices are giving same scores. I'm not sure why? because for index 1 it should not score stop words and need to apply stemmers etc. and for index 2 it should consider all of them. How both indices are giving same scores though having different analyzers?

Please explain

Thanks for your time as awlays 🙂

---

<div class="post-metadata">

**Author:** ![rahulnama](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Post date:** [October 23, 2018, 7:03am UTC](https://discuss.elastic.co/t/analyzers-default-and-custom-analyzers-giving-same-score/152629/2 "2018-10-23T07:03:00Z")

</div>

I've done it. Updated the mapping fields with custom analyzer. It worked.

--Thanks

---

<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:** [November 20, 2018, 7:03am UTC](https://discuss.elastic.co/t/analyzers-default-and-custom-analyzers-giving-same-score/152629/3 "2018-11-20T07:03:03Z")

</div>

Closed on November 20, 2018, 7:03am UTC

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