Open adrianlungu opened 7 years ago
My langdetect plugin creates a new field type and is not a string/text/keyword, which may be the reason that aggregation does not work.
I will have a look into this issue, maybe the idea of a new field type was over-engineered, and I find a simple way to set it to a straightforward string/text/keyword field type.
Maybe adding the possibility to set fielddata ? Or the ability to add a subfield to the language field in order to also store it as a keyword on which to add the aggregations ?
Hello,
I've tried creating an aggregation using all of the examples in the README without any luck yet.
If I try to use the stored langdetect field for aggregating, ES tells me the data needs fielddata: true, however, it does not allow me to enable it on the langdetect field since it is not text.
I have also tried to use the lang subfield mentioned in the README, however, this does not yield any results.
Example:
Response
Am I missing something or doing this wrong ?
Thanks!