Hello Erik, Mark and Phan:
Thanks all of you for the reply, I'll check all of you have said.
greetings,
Carmen
--
View this message in context:
http://old.nabble.com/Search-for-more-than-one-term-tp27348933p27406592.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com
Hello ctorresl,
you can use QueryParser automatically creating query as query syntax (Erick
showed).
Or use BooleanQuery class.
BooleanQuery query = new BooleanQuery;
query.add(a_termquery, Occur.SHOULD);
query.add(other_termquery, Occur.SHOULD);
On Thu, Jan 28, 2010 at 11:15 AM, Erick Erickson w
Have you looked at the query syntax?
See...
http://lucene.apache.org/java/3_0_0/queryparsersyntax.html
And the book Lucene In Action has many examples
HTH
Erick
On Wed, Jan 27, 2010 at 6:55 PM, ctorresl wrote:
>
> Hello:
> IÄm working with Lucene for my thesis, please I need answers to
>
ctorresl wrote:
> Hello:
> IÄm working with Lucene for my thesis, please I need answers to
> these questions:
> 1. How can I tell Lucene to search for more than one term??? (for example:
> the query "house garden computer" will return documents in which at least
> one of the
> term appears) What cl