Elasticsearch Map case insensitive to not_analyzed documents

后端 未结 8 1608
别那么骄傲
别那么骄傲 2020-12-08 14:46

I have a type with following mapping

PUT /testindex
{
    \"mappings\" : {
        \"products\" : {
            \"properties\" : {
                \"category         


        
8条回答
  •  时光取名叫无心
    2020-12-08 15:39

    If you want case insensitive queries ONLY, consider changing both your data AND your query to either of lower/upper case before you go about doing your business.

    That would mean you keep your field not_analyzed and enter data/query in only one of the cases.

提交回复
热议问题