lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: HitDocs class and returning a document number in the Hits'
Date Fri, 14 May 2004 10:06:34 GMT
Why not pass the Hits id instead of document id, if you need to look it 
up in Hits again?  What information would you need from Hits after 
displaying the results?  Maybe pull that information again using 

You could look to see how Nutch does this.  Look at the 
site for a running example.


On May 14, 2004, at 5:41 AM, jitender ahuja wrote:

> Hi All,
>          I am displaying search results and the results on clicking 
> the hits
> in the same Jsp page.
>           I don't know how to get the document number in the hits' 
> list for
> a particular document based on the Id.
> I feel that the only way is to provide a method in the Hits class that 
> need
> be passed a particular clicked hits'  Id   from the jsp page, with the
> HitDoc class also having one method ( to be called from the modified 
> Hits
> class) too to check for the matching Id document. But, with the latter 
> class
> not being  extensible (i.e. in another package, due to not being a 
> public
> class like the Hits class), I am stuck. Can anyone tell me a way out. I
> would be highly thankful for this help.
> Regards,
> Jitender
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message