lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Norouzi" <mnr...@gmail.com>
Subject Re: I need the internal lucene's document id from Hits
Date Thu, 05 Apr 2007 10:12:38 GMT
sorry to correct my answer:
I need something like this result.doc( i ).getId();

this id from the result (the i ) is starting from 1 but I need the actual id
in the index.

On 4/5/07, Mohammad Norouzi <mnrz57@gmail.com> wrote:
>
>
> Hi
> I need the id of the document that returned by Hits as a result of a
> query.
>
> Hits result = searchable.find(myQuery....);
>
> now I need something like result.getId ()
>
> is there any way to get it?
>
> Thanks so much
>
> --
> Regards,
> Mohammad Norouzi
>



-- 
Regards,
Mohammad

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message