jprante / elasticsearch-langdetect

A plugin for language detection in Elasticsearch using Nakatani Shuyo's language detector
Apache License 2.0
251 stars 46 forks source link

Should accept empty value when indexing #7

Open dqduc opened 10 years ago

dqduc commented 10 years ago

Currently, if the data is empty, langdetect will throw exception and stop indexing data (if it in a bulk process). So I think the plugin should accept empty/null value and return prob = 0, or have an option to set default lang in case data is empty/null