lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Lu" <chris...@gmail.com>
Subject Re: NPE in IndexReader
Date Wed, 22 Aug 2007 00:17:28 GMT
Right now I am very confused.

I agree segmentInfos are not needed in this case. But it's used in
aquireWriteLock(). What should we do?

-- 
Chris Lu
-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes:
http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes

On 8/21/07, Chris Hostetter <hossman_lucene@fucit.org> wrote:
>
>
> : I found out in latest MultiReader.java, the "SegmentInfos" is set to
> null.
>
> : However, segmentInfos are used in several places, causing NPEs.
> : For example, in IndexReader.acquireWriteLock(),
>
> MultiReader was refactored into two classes: MultiReader which is now only
> constructed from other readers, and MultiSegmentReader which is what
> IndexReader.open returns when a directory contans multiple segments ...
> segmentInfos shouldn't be needed in the first case -- and doesn't make
> much sense at all.
>
>
>
> -Hoss
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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