lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Premraj Narkhede <premraj.narkh...@dolcera.com>
Subject Need help with TermsEnum
Date Mon, 03 Feb 2014 06:51:12 GMT
Hi

I am trying to get to terms in Index using following code.

But I keep getting error saying termsEnum doesnt have "next" function

Please help

ireader= DirectoryReader.open(dir1)
terms = SlowCompositeReaderWrapper.wrap(ireader).terms("Doc");
termsEnum = terms.iterator(None)
while termsEnum.next():
 fg=termsEnum.term()
 print fg

Premraj

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