On Sat, Nov 28, 2009 at 8:24 PM, Koji Sekiguchi <k...@r.email.ne.jp> wrote:
> Hmm, if I set reopenReaders to false, as SolrIndexReader objects between
> before and after commit are different, ExternalFileField works as expected.
> If I set reopenReaders to true, it doesn't work. ... I don't like this
> dependency.

Ah... the cache is on the IndexReader instance... and if that doesn't
change, then ExternalFileField  doesn't know a commit was done.

> What I don't understand is that if I set reopenReaders to true in
> solrconfig-functionquery.xml,  TestFunctionQuery.testExternalField()
> is done successfully.

I believe it makes a change to the index though.

Go ahead and open a bug.  One idea is to use a different key for the
weak map (something that changes every commit).

-Yonik
http://www.lucidimagination.com

Reply via email to