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