Lucene Query

2014-08-19 Thread Jin Guang Zheng
Hi, I am wondering if someone can help me on this: I have index: doc 1 -- label: United States of America doc 2 -- label: United doc 2 -- label: America doc 2 -- label: States I am wondering how to generate a query with terms: states united america so only doc 1 returns. I was thinking Spa

Re: Lucene Query

2014-08-19 Thread Jin Guang Zheng
lucene.apache.org/core/4_6_0/core/org/apache/lucene/search/BooleanQuery.html > > However, if your corpus is more sophisticated you'll find that relevance > ranking is not always that trivial :) > > On Aug 19, 2014, at 11:00 AM, Jin Guang Zheng wrote: > > Hi, > > I a

Re: Lucene Query

2014-08-19 Thread Jin Guang Zheng
ted" > > > >I would suggest 1) if you are going to learn more about Lucene, and 2) > >if you are just want to get some thing out. > > > >Hope this helps, > >Tri > > > >On Aug 19, 2014, at 12:17 PM, Jin Guang Zheng wrote: > > > >Than