lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: all results in a field
Date Sun, 19 Sep 2004 09:05:30 GMT
Redirecting to lucene-user list (more appropriate).

1. You could use IndexReader's termDocs() method and iterate through
results, filtered by the desired field.

2. You can't.  You could add a special and constant field and value to
_every_ Document in your index, and then you could get all your
Documents with 'special field name:special value' type of query.


--- Murat Ozcan <> wrote:

> Hi all,
> I have some questions about query
> 1. How can I get all the results in a field 
> ( I tried     field:*      but didn't work )
> 2. how can I get all results without a given term like select all
> results from a field where field is not equal ...
> ( I tried    -field:...     did not work)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message