JustCodeZZL

Results 2 comments of JustCodeZZL

"this is hello and that is world" 分词后的结果中this is and that is等会作为停用词被过滤掉,最终分词后的结果就是 hello world,所以能够匹配上就很正常了

当不配置analyzer时,索引和搜索会使用默认standard分词器,而standard分词器对于中文是基于字符的粒度进行分词,比如"我是中国人"被standard分词后结果是"我","是","中","国","人",当搜索时同理,所以通过match_pharse时是一定能匹配上的,但这样做会导致是用match时会匹配到很多无意义的结果