infinilabs / analysis-pinyin

🛵 This Pinyin Analysis plugin is used to do conversion between Chinese characters and Pinyin.
Apache License 2.0
2.94k stars 547 forks source link

Text fields are not optimised for operations that require per-document field data like aggregations and sorting #268

Open csweJ opened 2 years ago

csweJ commented 2 years ago

"type" : "illegal_argument_exception", "reason" : "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [ent_nm.sort] in order to load field data by uninverting the inverted index. Note that this can use significant memory."