ES

索引结构设计

{
    "mapping":{
        "house":{
            "dynamic":false,
            "properties":{
                "title":{
                    "type":"text",
                    "index":"analyzed"
                }
                ...
            }
        }
    }
}

中文分词 index:analyzed

type:keyword,text,integer,data,long

索引结构模板

索引关键字统一定义

索引构建

搜索引擎

中文分词

/_analyze?analyzer=stadard&pretty=true&text=Well,Wall is a handsome teacher

/_analyze?analyzer=stadard&pretty=true&text=瓦力是一个英俊的老师

elasticSearch默认分词是以每个“字”为单位的

elasticsearch-analysis-ik-5.6.1.zip

Search-as-your-type

Last updated

Was this helpful?