You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Jones G <jo...@rediffmail.com> on 2004/07/13 23:40:39 UTC

Internal Document ID!

This is probably too simple a question but I already have spent several hours on it.

How do I get the internal document id within an index?

I need this for the IndexSearcher explain function.

Thanks.

Re: Internal Document ID!

Posted by Daniel Naber <da...@t-online.de>.
On Tuesday 13 July 2004 23:40, Jones G wrote:

> How do I get the internal document id within an index?

It's Hits.id(n), with n being the current hit number (e.g. 0-9 when you 
iterate over the first ten hits).

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org