Java建立elasticsearch的model時,如何配置使用ik分詞器?

在須要分詞的屬性上面加註解:web @Field(type = FieldType.text, analyzer = "ik_max_word", searchAnalyzer = "ik_max_word") 便可。 例如:微信 @Document(indexName = "people_v1", type = "peopleV1") public class People{ @Id
相關文章
相關標籤/搜索