lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From starz10de <farag_ah...@yahoo.com>
Subject Re: [ANN] Printing lucene index content
Date Sat, 03 Mar 2007 20:25:26 GMT



karl wettin-3 wrote:
> 
> 
> 3 mar 2007 kl. 17.06 skrev starz10de:
> 
>>
>> I did try this but it is still not working
>>
>> IndexReader ir = IndexReader.open("index");
>>
>>       TermDocs dok=ir.termDocs();
>>  while (dok.next()) {
>>     	  System.out.println("doc nr: "+dok.doc()+ " term freq
>> :"+dok.freq());
>>       }
> 
> TermEnum termEnum = aprioriIndex.getReader().terms();
> while (termEnum.next()) {
>    TermDocs dok = aprioriIndex.getReader().termDocs();
>    dok.seek(termEnum);
>    while (dok.next()) {
>      System.out.println(dok.doc() + "\t" + dok.freq() + "\t" +  
> termEnum.term());
>    }
> }
> 
> 
> -- 
> karl
> 
> hi Karl ,
> 
> how i can implement aprioriIndex ?
> 
> thanks
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Printing-lucene-index-content-tf3338412.html#a9289319
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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