lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: Searcher.close()
Date Wed, 17 Apr 2002 16:59:46 GMT

--- William W <> wrote:
> I have a problem using the Hits-Object:
> If I put my search result as an Attribute in a Session, i can access
> the 
> numbers and scores, but not any document via Hits.doc(...). I get  an
> exception like
> Bad file descriptor
>     at Method)
>     at
> To solve this problem, I'm not closing the IndexSearcher instance.
> Will I have problem with the "commit.lock" file ?

You shouldn't.
You can search while the index is being modified.
Note that you will not see index changes (e.g. new Documents added to
the index since you opened your Searcher) if you don't close and
re-open the Searcher when the index changes.
Check list archives for more info.


Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

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

View raw message