lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <karl.wet...@gmail.com>
Subject Re: Printing lucene index content
Date Sat, 03 Mar 2007 13:31:59 GMT

3 mar 2007 kl. 13.54 skrev starz10de:

> How i can print the index content in order to use them for some  
> application.
> I did use
> TermEnum terms=ir.terms();
> while (terms.next()) {
>     	     	  System.out.println(terms.term().text());
>       }
>
> I still need to print the document id and the term frequency inside  
> each
> document.

See TermDocs:

<http://lucene.apache.org/java/docs/api/org/apache/lucene/index/ 
TermDocs.html>

-- 
karl

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