Elasticsearch Became case sensitive after add synonym analyzer

I have found the solution!

I didn't realize that the filter that I applied in the settings is applicable while updating and searching the data. At first, I did this step:

  1. Create index with synonym filter
  2. Insert data
  3. Add uppercase before synonym filter

By doing that, the uppercase filter is not applied to my data. What I should've done are:

  1. Create index with uppercase & synonym filter (pay attention to the order)
  2. Insert data
    Then the filter will be applied to my data.
1 Like