On 3/18/2014 3:51 PM, AJ Lemke wrote:
I have a strange issue with my local SOLR install.
I have a search that sorts on a boolean field. This search is pulling the following
error: "java.lang.String cannot be cast to org.apache.lucene.util.BytesRef".
The search is over the dummy data that is included in the exampledocs. I am
searching on a 2 node, 2 shard environment.
I have included what I think is the pertinent information below.
Thanks for any insights
Info gathering questions:
Did you change the schema at all? If so, did you reindex? A reindex is
required for virtually all schema changes.
Did you upgrade Solr from a previous version with the same index?Solr is
supposed to handle this with no problems.
If you did ugprade Solr, whether the index was rebuilt or not, there may
be leftover components from the previous war extraction. It looks like
you're using the example jetty included with Solr, so this would apply:
It's best to delete anything in the solr-webapp directory for each
upgrade. You also want to be sure that you don't have old jars hanging
around in your classpath.
You could be running into a bug that I don't know about yet, but we
can't assume that's the case without ruling other problems out.
Thanks,
Shawn