Mapping openNLP or StanfordNLP in elasticsearch -
i trying map opennlp enable parsing of filed in document. using following code:
"article": "properties": "content" : { "type" : "opennlp" }
prior create mapping, downloaded named entity extraction binary file sourceforge.net
, installed/unpacked using curl in elasticsearch
plugin folders.
i following error message when tried run above mapping code.
"error": "mapperparsingexception[no handler type [opennlp] declared on field [content]]" "status": 400
after quick googling i've found this: https://github.com/spinscale/elasticsearch-opennlp-plugin
i assume you're trying install it. - it's outdated , not supported recent elasticsearch versions.
the purpose of seems extract data files , index them tags. elasticsearch mapper attachments type plugin that. encourage use instead of onennlp. quick extract documentation:
the mapper attachments plugin adds attachment type elasticsearch using apache tika. attachment type allows index different "attachment" type field (encoded base64), example, microsoft office formats, open document formats, epub, html, , on (full list can found here).
an example how use map fields using it:
put /test/person/_mapping { "person" : { "properties" : { "my_attachment" : { "type" : "attachment" } } } }
Comments
Post a Comment