So when I go to try the clustering example, I fire up the server, hit
it with the example on the Wiki

http://localhost:8983/solr/select?indent=on&q=*:*&rows=10&clustering=true

And... boom.

java.lang.NullPointerException
        at 
org.apache.solr.schema.SortableIntField.write(SortableIntField.java:72)
        at org.apache.solr.schema.SchemaField.write(SchemaField.java:108)
[...]

It's because a schema mismatch of course... I had already indexed data
using the normal schema, and now we're using a different schema/config
with the same data dir.
I imagine this will be a common mistake.

Should we try to do this like SolrCell... just make it a lazy handler
and reference the libs in solrconfig.xml?  Oh wait... searchComponents
can't be lazy I don't think... darn.
I guess the only "fix" (it's not really a bug, just undesirable) is to
try and get the schemas closer together?

-Yonik
http://www.lucidimagination.com

Reply via email to