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 Chris Sibert <ch...@attbi.com> on 2002/06/25 19:13:43 UTC

Retrieve documents from index by document number

Anybody know how to retrieve a stored document from an index by it's document number ? I have a list of search hits, and when the user clicks on one, I want to pull the stored document up out of the index. 


Re: Retrieve documents from index by document number

Posted by Chris Sibert <ch...@attbi.com>.
I will look at it, thanks. In the meantime, I answered my own question. The
IndexSearcher class has a .doc method that does it.

            document = indexSearcher.doc ( int_DocumentNumber ) ;


----- Original Message -----
From: "Otis Gospodnetic" <ot...@yahoo.com>
To: "Lucene Users List" <lu...@jakarta.apache.org>
Sent: Tuesday, June 25, 2002 1:31 PM
Subject: Re: Retrieve documents from index by document number


> Check the Hits class API:
>
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/Hits.html
>
> Otis
>
> --- Chris Sibert <ch...@attbi.com> wrote:
> > Anybody know how to retrieve a stored document from an index by it's
> > document number ? I have a list of search hits, and when the user
> > clicks on one, I want to pull the stored document up out of the
> > index.
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Retrieve documents from index by document number

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Check the Hits class API:
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/Hits.html

Otis

--- Chris Sibert <ch...@attbi.com> wrote:
> Anybody know how to retrieve a stored document from an index by it's
> document number ? I have a list of search hits, and when the user
> clicks on one, I want to pull the stored document up out of the
> index. 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>