Thanks Koji. It worked for me. jibu -----Original Message----- From: Koji Sekiguchi [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 18, 2005 10:51 AM To: java-user@lucene.apache.org Subject: Re: need help for generating Query String
Hi, > In a program I have indexed 10 files. When I do a search using the query > "contents:java", it will return 2 documents. But when I give > "-contents:java", then it will return an empty result set. Does anyone > know what the right query string for this? I.e., to retrieve all > documents that does not contain the word 'java'. Please see FAQ of Lucene: How does one determine which documents do not have a certain term? http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-0cda565d913389773ca 9c3246bde894c3e99084e Thank you, Koji --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]