have truble with bleve-explorer

80 views
Skip to first unread message

Zhidong Chen

unread,
Apr 5, 2017, 4:44:48 AM4/5/17
to bleve
I used bleve to analyze Chinese with gojieba_bleve , when I use bleve-explorer and set dataDir to the index data generated by bleve index using gojieba, and got error:

error parsing mapping JSON: no tokenizer with name or type 'gojieba' registered

I don't know how to add tokenizer and analyzer to bleve. The gojieba's bleve code show how to regist but it need config information.The index struct has no method to get indeximpl and can not do AddCustomTokenizer and AddCustomAnalyzer to set config information to index or mapping. Could you please tell me how to add customized tokenizer and analyzer to it? Thanks!

Marty Schoch

unread,
Apr 5, 2017, 8:25:21 AM4/5/17
to bl...@googlegroups.com
I think what you'll need to do is modify the bleve-explorer main.go to include the import:


All of the code to register the the tokenizer and analyzer are in init() methods, so it should just work.

Can you give that a try and report back if it works?

Thanks,
marty

--
You received this message because you are subscribed to the Google Groups "bleve" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bleve+unsubscribe@googlegroups.com.
To post to this group, send email to bl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bleve/f4a55542-75ab-40ef-922e-e932a65cf920%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages