Can't we set up the clustering solrconfig to have a different data
directory and remove the default of ./solr/data? I get caught on
this gotcha in a lot of places these days b/c I am often trying out
lots of different configs.
On Oct 20, 2009, at 5:13 PM, Yonik Seeley wrote:
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
--------------------------
Grant Ingersoll
http://www.lucidimagination.com/
Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search