hi,

i'am using the latest build of lucene (today),
and have the following problem:

i have a servlet getting a searchstring and using lucene
to search a lucene-index.
the search is successful and returned a Hit-class.
at Servlet-side, i can see the number, the score
and also the Document of every hit via the respective
methods.

but when i now add the Hit.Object as an attribute
to a session and forward the request to a jsp-file,
the jsp shure can access the hit (session.getAttribute(..)),
get the count (hit.getLength()), get every number (..),
get every score (..),
BUT NOT get any document!

hit.doc(i) produces an error like:
Bad file descriptor
java.io.IOException:
   at java.io.RandomAccessFile.seek(Native Method)
   at com.lucene.store.FSInputStream.seekInternal(FSDirectory.java:177)
   ...
   ...

of couse i can retrieve all hits at Servlet-side inclusive there
Documents or Fields and
putting them in a HashMap, but this is not elegant, especialy not when
implementing
a paging-algorithm. this should only try to get the documents, when the
user realy wants to see
them.

thank you in advance!

basti


_______________________________________________
Lucene-users mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lucene-users

Reply via email to