lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi" <koji.sekigu...@m4.dion.ne.jp>
Subject Re: need help for generating Query String
Date Tue, 18 Oct 2005 05:20:45 GMT
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-0cda565d913389773ca9c3246bde894c3e99084e

Thank you,

Koji

----- Original Message ----- 
From: "jibu mathew" <jibu@deldynamics.com>
To: <java-user@lucene.apache.org>
Sent: Tuesday, October 18, 2005 1:45 PM
Subject: need help for generating Query String


> Hi all,
>
> I need urgent help for the following issues.
>
>
>
> What is the query string to retrieve all the documents indexed
> (something similar to *.*)?
> 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'.
> What is the query string to retrieve all the documents which content is
> empty?
>
>
> Please help me as soon as possible
>
>
>
> Thanks
>
> Jibu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
> 



---------------------------------------------------------------------
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