karl wettin-3 wrote:
> 
> 
> 3 mar 2007 kl. 22.31 skrev starz10de:
> 
>>>
>>> hi Karl ,
>>>
>>> but the problem is that the getReader is not defined for type  
>>> indexReader
>>> !!
>>>
>>> this is my code
>>>
>>>  IndexReader ir = IndexReader.open("index");
>>>
>>>       TermEnum terms=ir.terms();
>>>
>>>       TermEnum termEnum = ir.getReader().terms();
>>>       while (termEnum.next()) {
>>>          TermDocs dok = ir.getReader().termDocs();
>>>          dok.seek(termEnum);
>>>          while (dok.next()) {
>>>            System.out.println(dok.doc() + "\t" + dok.freq() + "\t" +
>>>       termEnum.term());
>>>          }
>>>       }
>>>
> 
> 
> Just skip the getReader(). That code I gave you accessed the  
> IndexReader from an aggregation.
> 
> -- 
> karl
> 
> Hi Karl,
> 
> thanks alot for your kind help, just last simple question
> my text file is " hello every one"
> i successed to display the text file  but with :
> -
> -
> modified:0eyulpzyg
> path:c:\test\1.txt
> 
> which i don't need to access ,how i can avoid printing that.  
>  
> 
> which i dont need to access.
> 
> thanks in advance.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to