Re: going from Document -> IndexReader's docid

2005-11-09 Thread tlittell
Ahh, thank you very much. That's exactly what I needed, I just didn't see that in the API. cheers, Todd > The question is, how did you get that Document? If you got it from > Hits, you can get the document id from Hits.id(hit_num). > > Erik > > > > On 9 Nov 2005, at 11:13, Yonik Seeley w

Re: going from Document -> IndexReader's docid

2005-11-09 Thread Erik Hatcher
The question is, how did you get that Document? If you got it from Hits, you can get the document id from Hits.id(hit_num). Erik On 9 Nov 2005, at 11:13, Yonik Seeley wrote: There really isn't a generic way... you have to search for the document. If you have a unique id field in yo

Re: going from Document -> IndexReader's docid

2005-11-09 Thread Yonik Seeley
There really isn't a generic way... you have to search for the document. If you have a unique id field in your document, you can find the document id quickly via IndexReader.termDocs(term) -Yonik Now hiring -- http://forms.cnet.com/slink?231706 On 11/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wr