Re: Multiple Field search

2008-05-06 Thread Erick Erickson
Well, it's the one I'd use. Whether it's the best or not is...er...not so certain . Erick On Tue, May 6, 2008 at 12:37 PM, Kelvin Foo Chuan Lyi <[EMAIL PROTECTED]> wrote: > Thanks... that's what I thought of ... but was wondering if that was the > best method to do so... i guess it is then... :)

Re: Multiple Field search

2008-05-06 Thread Kelvin Foo Chuan Lyi
Thanks... that's what I thought of ... but was wondering if that was the best method to do so... i guess it is then... :) On Wed, May 7, 2008 at 12:32 AM, Erick Erickson <[EMAIL PROTECTED]> wrote: > One of my favorite quotes from Roger Zelazny... "postulating > infinity, the rest is easy". > >

Re: Multiple Field search

2008-05-06 Thread Erick Erickson
One of my favorite quotes from Roger Zelazny... "postulating infinity, the rest is easy". In this case, "infinity" is how you break up your query. The easy part is making your search return what you want. Assuming you know that you want "greatest" and "hits" to go against the title field and "bea

Multiple Field search

2008-05-06 Thread Kelvin Foo Chuan Lyi
I'm new to lucene and have a question on how to create a query for the following example... Say I have two fields, Title and Description, with the following data Item 1 Title: The greatest hits Description : Collection of the best music from The Beatles. Item 2 Title: U2 collections Description :

Re: Lucene multiple field search performance

2008-02-13 Thread Erick Erickson
t;> Another doubt, I thought forcing bookDate in the Search Text it would > >> reduce > >> the universe of search, then leading to quicker responses. But it > didn't. > >> Is > >> there a trick to improve the speed? > >> > >> Cesar &g

Re: Lucene multiple field search performance

2008-02-13 Thread Cesar Ronchese
thout +) >> >> Is the reduced performance normal for this case? >> >> >> Another doubt, I thought forcing bookDate in the Search Text it would >> reduce >> the universe of search, then leading to quicker responses. But it didn't. >> Is >> the

Re: Lucene multiple field search performance

2008-02-12 Thread Michael Stoppelman
Is > there a trick to improve the speed? > > Cesar > -- > View this message in context: > http://www.nabble.com/Lucene-multiple-field-search-performance-tp15448754p15448754.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --

Lucene multiple field search performance

2008-02-12 Thread Cesar Ronchese
s there a trick to improve the speed? Cesar -- View this message in context: http://www.nabble.com/Lucene-multiple-field-search-performance-tp15448754p15448754.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. -

Re: Multiple field search problem

2005-04-26 Thread Victor Abeytua
Thanks for the quick reply. As I supposed, the answer was right in front of me. To build a query as the one I wanted I have to use the BooleanQuery class: Term term1 = new Term("field1", "Policy planning"); Term term2 = new Term("field1", "Newspapers"); Term term3 = new Te

Re: Multiple field search problem

2005-04-25 Thread Gusenbauer Stefan
Victor Abeytua wrote: > Hello everyone, >In the project I'm currently involved we are using lucene (+ > Digester) to index a small number of XML files. To be able to perform > the searches I want, I should need to query the index with something > similar to (where fieldN are XML tags): > (fiel

Multiple field search problem

2005-04-25 Thread Victor Abeytua
Hello everyone, In the project I'm currently involved we are using lucene (+ Digester) to index a small number of XML files. To be able to perform the searches I want, I should need to query the index with something similar to (where fieldN are XML tags): (field1:"Policy and planning" OR fie