Re: Retrieve documents from index by document number

2002-06-25 Thread Otis Gospodnetic

Check the Hits class API:
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/Hits.html

Otis

--- Chris Sibert [EMAIL PROTECTED] 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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Retrieve documents from index by document number

2002-06-25 Thread Chris Sibert

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 [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
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 [EMAIL PROTECTED] 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:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]