Lower case normalizer "search_analyzer"?


(Bill) #1

I want to lowercase a "keyword" field, and then make sure the search is also lowercased. I am using normalizer. Is there an equivalent for "search_analyzer" for normalizers on user input?

"normalizer": {
      "lower_normalizer": {
        "type": "custom",
        "filter": [ "lowercase", "asciifolding" ]
      }
    }

           "rawci": {
                "type": "keyword",
                "normalizer": "lower_normalizer",
                "ignore_above": 512
              },
              "match": {
                "type": "text",
                "analyzer": "match_analyzer",
                "search_analyzer": "search_match_analyzer"
              }

(Clinton Gormley) #2

The normalizer should be applied at index and search time automatically (assuming you're using a match query instead of a term query)


(system) #3

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