lucene demo 入门配置
2013-09-21 18:24
309 查看
在写这篇文章时,lucene的最新版本是4.1.0,文件可以从Apache站点(http://lucene.apache.org/)下载lucene-4.1.0.zip,
解压后有个demo文件夹就是lucene的demo,war文件程式可以运行在web容器中(tomcat,jboss,weblogic等),另外一个可以运行在j2se平台,
下面以tomcat容器为例,把lucene-xml-query-demo.war拷贝到webapps文件夹下,启动tomcta后自动解压,
如果需要错误class org.apache.lucene.xmlparser.webdemo.FormBasedXmlQueryDemo no found,需要把web.xml下面的
<servlet-class>org.apache.lucene.xmlparser.webdemo.FormBasedXmlQueryDemo</servlet-class>
修改为
<servlet-class>org.apache.lucene.demo.xmlparser.FormBasedXmlQueryDemo</servlet-class>
然后把lucene-4.1.0解压包下
analysis\common\lucene-analyzers-common-4.1.0.jar
sandbox\lucene-sandbox-4.1.0.jar
这两个文件拷贝到WEB-INF\lib文件夹下面,运行如下:
转自:http://www.cnblogs.com/mikevictor07/archive/2013/01/31/2888313.html
解压后有个demo文件夹就是lucene的demo,war文件程式可以运行在web容器中(tomcat,jboss,weblogic等),另外一个可以运行在j2se平台,
下面以tomcat容器为例,把lucene-xml-query-demo.war拷贝到webapps文件夹下,启动tomcta后自动解压,
如果需要错误class org.apache.lucene.xmlparser.webdemo.FormBasedXmlQueryDemo no found,需要把web.xml下面的
<servlet-class>org.apache.lucene.xmlparser.webdemo.FormBasedXmlQueryDemo</servlet-class>
修改为
<servlet-class>org.apache.lucene.demo.xmlparser.FormBasedXmlQueryDemo</servlet-class>
然后把lucene-4.1.0解压包下
analysis\common\lucene-analyzers-common-4.1.0.jar
sandbox\lucene-sandbox-4.1.0.jar
这两个文件拷贝到WEB-INF\lib文件夹下面,运行如下:
转自:http://www.cnblogs.com/mikevictor07/archive/2013/01/31/2888313.html
相关文章推荐
- lucene demo 入门配置
- lucene中demo的运行及配置
- lucene入门DEMO2
- 全文检索技术Lucene入门和学习、与数据库数据结合的demo实现
- solr入门之搜索建议配置和代码Demo
- lucene简单入门demo
- lucene第一步--简单的入门demo
- lucene入门及安装配置
- Spring MVC用户注册配置入门教程及其代码实例demo下载
- 李克华 云计算高级群: 292870151 195907286 交流:Hadoop、NoSQL、分布式、lucene、solr、nutch kafka入门:简介、使用场景、设计原理、主要配置及集群搭
- Lucene开发环境配置;Lucene开发包中Demo调试。
- 全文检索技术Lucene入门和学习、与数据库数据结合的demo实现
- lucene简单入门demo
- Zend Framework入门之环境配置及第一个Hello World示例(附demo源码下载)
- lucene入门demo
- Lucene入门之--运行Lucene-demo
- android studio 编译so文件入门(ndk配置及demo)1
- lucene安装配置及demo调试
- Lucene02---Lucene入门与Demo
- Maven+SpringMVC+Dubbo 简单的入门demo配置