I have a type with following mapping
PUT /testindex { \"mappings\" : { \"products\" : { \"properties\" : { \"category
just create your custom analyzer with keyword tokenizer and lowercase token filter.
keyword
lowercase