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 Re: Need help with TermsEnum
Date Mon, 03 Feb 2014 07:09:45 GMT
I am using 4.5.1


On Mon, Feb 3, 2014 at 12:38 PM, Andi Vajda <vajda@apache.org> wrote:

>
> > On Feb 2, 2014, at 22:51, Premraj Narkhede <premraj.narkhede@dolcera.com>
> wrote:
> >
> > 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
>
> What version of PyLucene are you using ?
>
> Andi..
>
> >
> > 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