Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

Analyzer throws an Exception if the analyzed field is empy #2

Closed
marfago opened this issue Sep 28, 2013 · 2 comments
Closed

Analyzer throws an Exception if the analyzed field is empy #2

marfago opened this issue Sep 28, 2013 · 2 comments

Comments

@marfago
Copy link

marfago commented Sep 28, 2013

When the analyzed field is empty the analyzer throws an IOException (due to a LanguageDetectionException ) and the document is skipped.

@0x-Fede
Copy link

0x-Fede commented Oct 9, 2013

I do not know if this is related to the same issue. Elasticsearch log shows...

Caused by: org.xbib.elasticsearch.common.langdetect.LanguageDetectionException: no features in text
at org.xbib.elasticsearch.common.langdetect.Detector.detectBlock(Detector.java:212)
at org.xbib.elasticsearch.common.langdetect.Detector.detectAll(Detector.java:205)
at org.xbib.elasticsearch.index.mapper.langdetect.LangdetectMapper.parse(LangdetectMapper.java:132)
... 12 more
root@search:/var/log/elasticsearch# tail elasticsearch.log
at org.xbib.elasticsearch.index.mapper.langdetect.LangdetectMapper.parse(LangdetectMapper.java:138)
at org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:599)
at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:467)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:507)
... 9 more
Caused by: org.xbib.elasticsearch.common.langdetect.LanguageDetectionException: no features in text
at org.xbib.elasticsearch.common.langdetect.Detector.detectBlock(Detector.java:212)
at org.xbib.elasticsearch.common.langdetect.Detector.detectAll(Detector.java:205)
at org.xbib.elasticsearch.index.mapper.langdetect.LangdetectMapper.parse(LangdetectMapper.java:132)
... 12 more

@jprante
Copy link
Owner

jprante commented Oct 25, 2013

Fixed in 2.0.0

@jprante jprante closed this as completed Oct 25, 2013
jprante pushed a commit that referenced this issue Jun 7, 2017
Make classification accuracy tests more granular
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants