RE: How to get the doc ID from HITS

2008-02-22 Thread Dharmalingam Ganesan
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

RE: Problem in Coding, to get the DOC ID from HITS

2008-02-22 Thread Dharmalingam Ganesan
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