Intro ElasticSearch String About Text Versus Keyword
這篇介紹ElasticSearch String About Text Versus Keyword。
在ElasticSearch 有兩種 String 分別是 Text 和 Keyword
兩種用途不同如下
Text : 用於全文檢索
Keyword : 用於Sorting & Aggregation
預設在Dynamic mapping中,這兩種Pattern是同時存在
因此index會佔用較多硬碟空間資源