Peter - I posted this to the solr-dev list this morning also. The
thread to follow is over there.
Erik
On May 25, 2009, at 9:05 AM, Peter Wolanin wrote:
Building Solr last night from updated svn, I'm now getting the
exception below when I use any fq parameter searching a pre-existing
index. So far, I cannot fix it by tweak config files, but I had to
delete and re-index.
I note that Solr was recently updated to the latest lucene build, so
maybe something broke in the index format?
here's the relevant part of the trace:
org.apache.lucene.index.ReadOnlySegmentReader cannot be cast to
org.apache.solr.search.SolrIndexReader
java.lang.ClassCastException:
org.apache.lucene.index.ReadOnlySegmentReader cannot be cast to
org.apache.solr.search.SolrIndexReader
at org.apache.solr.search.SortedIntDocSet
$2.getDocIdSet(SortedIntDocSet.java:530)
at
org.apache.lucene.search.IndexSearcher.doSearch(IndexSearcher.java:
237)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:221)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:212)
at org.apache.lucene.search.Searcher.search(Searcher.java:150)
at
org
.apache
.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:
1032)
at
org
.apache
.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:894)
at
org
.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:
337)
at
org
.apache
.solr.handler.component.QueryComponent.process(QueryComponent.java:
176)
at
org
.apache
.solr
.handler
.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
at
org
.apache
.solr
.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1328)
--
Peter M. Wolanin, Ph.D.
Momentum Specialist, Acquia. Inc.
peter.wola...@acquia.com