Need help with a select type field

Hello everyone, I will put a field to document in format UA-2020-1605-er. But users can search in a case insensitive like ua-2020-1605-er or UA-2020-1605-ER, length, and format always the same. If I try set type "UaId": { "type": "keyword" } Term-query ignore sensitive, also I set type "UaId": { "type": "text" } Match-query found a lot of extra documents. What type of field and query I must use for this case?

Use a keyword mapping with a lowercase normaliser.

1 Like

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