See TermDocs/TermEnum. Or perhaps TermFreqVector. I admit I haven't
used that last, but that family of methods ought to fix you up.

What problem are you trying to solve? Perhaps there are better
solutions to suggest....

Best
Erick

On Mon, Feb 25, 2008 at 6:04 PM, Itamar Syn-Hershko <[EMAIL PROTECTED]>
wrote:

> Hello again,
>
> If I wanted to do this programmatically, how would I do this (retrieve a
> list of all terms in a field for a specific document - better if it was in
> alphabettic order and with frequency data)?
>
> Thanks,
>
> Itamar.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 22, 2008 3:22 PM
> To: java-user@lucene.apache.org
> Subject: RE: Rebuilding Document from index?
>
> You can use Luke to rebuild the document. It will show you the terms of
> the
> analyzed document, not the original content.
> And this is what you want, if I understood you correctly.
>
> > -----Original Message-----
> > From: Itamar Syn-Hershko [mailto:[EMAIL PROTECTED]
> > Sent: Freitag, 22. Februar 2008 14:02
> > To: java-user@lucene.apache.org
> > Subject: Rebuilding Document from index?
> >
> > Hi,
> >
> > Is it possible to re-create a document from an index, if its not
> > stored?
> > What I'm looking for is a way to have a text document with the text
> > AFTER it was analyzed, so I can see how my analyzer handles certain
> > cases. So that means I don't care if I will not get the original
> > document. I want to see the document as the index knows it.
> >
> > Thanks in advance,
> >
> > Itamar.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to