You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2004/09/19 11:05:30 UTC
Re: all results in a field
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.
Otis
--- Murat Ozcan <mo...@sirius-group.com> 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: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org