lucene
liufeng2004
这个作者很懒,什么都没留下…
展开
-
lucene多字段,多reader搜索
[code="java"] //多域搜索----------------------------- String[] queries = { "测试", "南京" }; String[] fields = { "title", "content" }; BooleanClause.Occur[] clauses = { BooleanClause.Occur.SHOULD, Boo...原创 2010-08-24 15:06:05 · 187 阅读 · 0 评论 -
lucene实现结果分组统计,类似group by
[code="java"] import java.io.IOException; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; impor...原创 2011-02-10 17:02:37 · 579 阅读 · 0 评论