lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jibu mathew" <j...@deldynamics.com>
Subject RE: need help for generating Query String
Date Wed, 19 Oct 2005 05:17:03 GMT
Thanks Koji. It worked for me.
jibu

-----Original Message-----
From: Koji Sekiguchi [mailto:koji.sekiguchi@m4.dion.ne.jp] 
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message