Erik Hatcher wrote:
I saw Peter Wolanin mention this on IRC's #solr the other day (Hi
Peter, nice meeting you at the meetup the other night!), and I just
encountered it too:
HTTP ERROR: 500
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.DocSetBase$1.getDocIdSet(DocSet.java:254)
at
org.apache.lucene.search.IndexSearcher.doSearch(IndexSearcher.java:237)
at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:221)
This comes from using an fq parameter:
http://localhost:8983/solr/select?q=*:*&fq=ipod
Works fine without fq.
Yikes!
Erik
Hmmm - what did you do leading up to it? I just tried a trunk example,
load docs, try search, and that doesn't seem to tickle it. It appears
that somehow, some code is passing in a lucene reader that didnt come
from SolrIndexSearcher (which wraps indexreader to solrindexreader). I
can't find the code that would be doing that though. Was looking for a
deeper stacktrace or something, but havn't been able to tickle the bug yet.
- Mark
--
- Mark
http://www.lucidimagination.com