向Luke添加自定义分析器 [英] Adding custom Analyzers to Luke

查看:83
本文介绍了向Luke添加自定义分析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Luke 现在托管在Google代码下. 默认情况下,它支持开箱即用使用多个Lucene分析仪. 但是,我想用它来查看我使用自己的自定义分析器建立的索引, 我们称之为MyAnalyzer. 您能告诉我如何将MyAnalyzer和默认分析仪一起添加到Luke吗? 谷歌搜索和对lukeall罐子的检查使我一无所知.

Luke, the wonderful Lucene index viewer, is now hosted under Google code. As a default, it supports using several Lucene Analyzers out of the box. However, I would like to use it to view an index I built using my own custom Analyzer, Let's call it MyAnalyzer. Can you please tell me how to add MyAnalyzer to Luke, along with the default analyzers? Googling and some examination of the lukeall jar gave me no clue.

推荐答案

只需将带有自定义分析器的jar放在类路径中即可.

Just put the jar with your custom analyzer in the classpath.

这篇关于向Luke添加自定义分析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆