It should be hits.id(i), not hits.id[i]. Note id is a method not an
array.
-Original Message-
From: sumittyagi [mailto:[EMAIL PROTECTED]
Sent: Friday, February 22, 2008 4:06 PM
To: java-user@lucene.apache.org
Subject: Re: How to get the doc ID from HITS
here is my code, i am just starti
Of course, these are programming errors nothing really related to
Lucene.
Hits hits;
Int hitCount = hits.length
This does not make sense. You have just declared hits. It must be
created before using it.
The second error should disapper if you add throws declaration or
try/catch block.
By the wa