![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lunece搜索
文章平均质量分 74
wangzhenwangzhen
这个作者很懒,什么都没留下…
展开
-
lunece查询实例.
lunece查询 //初始化IndexSearcher IndexSearcher search = new IndexSearcher(path); //构建Term Term term = new Term(fieldName,value); //构建Query对象 Query q = new TermQuery(term); //检索 Hits hits = search....原创 2010-11-03 16:53:12 · 158 阅读 · 0 评论 -
lunece搜索
我有一个对象Info 里面有id,title,state,content几个属性,现在我要查询content包含keyword关键字,而且state='2' or state='3'的Info 对象,例如这个语句"from Info where content like '%keyword%' and (state='2' or state='3')" 查询,请问该如何写,下面是我写的代码,...原创 2010-11-03 16:53:57 · 99 阅读 · 0 评论