How to get Document (or filename) from Span

2006-04-18 Thread Boris Galitsky
Thanks a lot Hoss The question is when I get Spans, I get start/end positions and a Document order (starting from 0), not the Document object itself from which I could get a filename. Since I believe there is no way to get a Document object from Spans, and there is no such thing as Document

Re: How to get Document (or filename) from Span

2006-04-18 Thread Chris Hostetter
: The question is when I get Spans, I get start/end positions and a : Document order (starting from 0), not the Document object itself from Are you sure about that? Spans.doc() should return you the internal document Identifier which you can pass to indexReader.doc(int) : which I could get a

Re: How to get Document (or filename) from Span

2006-04-18 Thread Grant Ingersoll
The doc() number can be given to IndexReader.document() to get the Document, I believe. Boris Galitsky wrote: Thanks a lot Hoss The question is when I get Spans, I get start/end positions and a Document order (starting from 0), not the Document object itself from which I could get a

Re: How to get Document (or filename) from Span

2006-04-18 Thread Boris Galitsky
I fully understand now. Thanks a lot Boris On Tue, 18 Apr 2006 11:10:20 -0700 (PDT) Chris Hostetter [EMAIL PROTECTED] wrote: : The question is when I get Spans, I get start/end positions and a : Document order (starting from 0), not the Document object itself from Are you sure about that?