lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Norouzi" <mnr...@gmail.com>
Subject Re: Retrieving field names from an index
Date Tue, 05 Jun 2007 14:24:56 GMT
Hi
you can get them from searcher, if documents in your index are the same

Enumeration fields = searcher.doc(0).fields();



On 6/5/07, Stadler Hans-Christian <hans-christian.stadler@psi.ch> wrote:
>
> Hi,
>
> how would I efficently retrieve the names of all possible fields present
> in an index?
>
> One way would be to iterate over all terms and extract the field names,
> but it doesn't
> look like this method is efficient for large indices.
>
> Murphy for president!
> HC
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
Regards,
Mohammad
--------------------------
see my blog: http://brainable.blogspot.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message