Re: field cross search in lucene

2010-11-30 Thread maven apache
So,any better ideas for search Chinese characters? 2010/11/30 Anshum > You could change Occur.SHOULD to Occur.MUST for both fields. > This should work for you if what I understood is what you wanted. > > > -- > Anshum Gupta > http://ai-cafe.blogspot.com > > > On Tue, N

Re: field cross search in lucene

2010-11-30 Thread maven apache
gt; > > -- > Ian. > > > On Tue, Nov 30, 2010 at 11:42 AM, maven apache > wrote: > > Hi: I have two documents: > > > > title body > > Lucene In ActionA high-performance, full-featured text search > > engine library.

Re: field cross search in lucene

2010-11-30 Thread maven apache
the default OP is AND. > > Thanks,I will have a try tommorrow. > Shai > > On Tue, Nov 30, 2010 at 1:42 PM, maven apache >wrote: > > > Hi: I have two documents: > > > > title body > > Lucene In ActionA high-performance,

field cross search in lucene

2010-11-30 Thread maven apache
Hi: I have two documents: title body Lucene In ActionA high-performance, full-featured text search engine library. Lucene Practice Use lucene in your application Now,I search "lucene performance" using private String[] f = { "title", "body"}; private

Re: What is the difference between the "AND" and "+" operator?

2010-11-30 Thread maven apache
2010/11/30 Chris Hostetter > > : Subject: What is the difference between the "AND" and "+" operator? > > In this query, "y" is mandatory, but documents that also match "x" will > score higher then documents that only match "y"... > >x +y > > In both of these queries, "x" and "y" are both

Re: What is the difference between the "AND" and "+" operator?

2010-11-29 Thread maven apache
2010/11/29 Anshum > Hi Yang, > About the difference between a filter and a query, the essential one is, > filter does not calculate score/relevance and so the sort would vary. > Thanks,got it. Is any performance between them? > Also, having "No" to be escaped while query formation is, by using

lucene query type

2010-11-16 Thread maven apache
Hi: There are types of TermQuery,TermRangeQuery,and the BooleanQuery and etc built in lucene,and they can be combined to make a powerful search. However I wonder if this is useful for a user in the client side? For example,I build a web user interface with a search textfield(like the google) for