Tim Haughton wrote:
OK, I spoke too soon.

When you tried it on your Mac, did it create the index in the right place?

Yes, Solr created the index directory in $CATALINA_HOME/bin/solr/data/index
as I expected, because I started tomcat from bin directory.
(and I didn't specify -Dsolr.solr.home when I started)

Mine is still trying to create it under the webapps directory.

How does your <dataDir/> look like in solrconfig.xml?

<!-- Used to specify an alternate directory to hold all index data other than the default ./data under the Solr home. If replication is in use, this should match the replication configuration. -->
 <dataDir>${solr.data.dir:./solr/data}</dataDir>

Koji

Cheers,

Tim

2009/5/28 Tim Haughton <timhaugh...@gmail.com>

2009/5/28 Koji Sekiguchi <k...@r.email.ne.jp>

Ok.
I've just tried it (the way you quoted above) on my Mac and worked fine...
Do you see any errors on Tomcat log when starting?

Sussed it. As you would imagine it was the stupidest of things. And
probably the *one* thing left out of my description. My solr.xml file had an
illegal character at the top of the file. I hadn't noticed it until the
error logs pushed me in the right direction. Thanks for the pointer.

Cheers,

Tim





Reply via email to