<property name="hibernate.search.default.indexBase">
d:\index
</property>
这样写是可以的, 但是以下就不知道了,是个错误的
<property name="hibernate.search.default.indexBase">
classpath:indexdoc </property>
//放在WEB-INF\classes\indexdoc 下 怎么写啊
还有以下问题不解,望告知. QueryParser parser = new QueryParser("newstitle", new StandardAnalyzer());
org.apache.lucene.search.Query luceneQuery = null;
try {
luceneQuery = parser.parse(newstitle); // build Lucene query
} catch (ParseException e) {
e.printStackTrace();
}
这个是对newstitle新闻标题进行查询,能不能对新闻所有记录查询啊?
d:\index
</property>
这样写是可以的, 但是以下就不知道了,是个错误的
<property name="hibernate.search.default.indexBase">
classpath:indexdoc </property>
//放在WEB-INF\classes\indexdoc 下 怎么写啊
还有以下问题不解,望告知. QueryParser parser = new QueryParser("newstitle", new StandardAnalyzer());
org.apache.lucene.search.Query luceneQuery = null;
try {
luceneQuery = parser.parse(newstitle); // build Lucene query
} catch (ParseException e) {
e.printStackTrace();
}
这个是对newstitle新闻标题进行查询,能不能对新闻所有记录查询啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货