Analyzers: default and custom analyzers giving same score

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 :slight_smile:

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

--Thanks

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