The default host for urls is /solr. Looks like you want to run on the root 
context. In Solr 4.1 this is best done by setting the host to / (either in 
solr.xml or with the hostContext sys prop). For 4.0 you have to use a host 
context of "." to run on the root context.

- Mark

On Dec 19, 2012, at 1:28 PM, davers <dboych...@improvementdirect.com> wrote:

> I have setup a solr cloud with one shard for testing with an external
> zookeeper server. The cloud shows up fine in the solr admin but when i run a
> query on the cloud ex.
> 
> http://solr-sa-2.sys.id.build.com:8080/apache-solr-4.0.0/productindex/select?q=manufacturer:*hler
> 
> I get the result: 
> 
> Server at http://solr-sa-2.sys.id.build.com:8080/solr/productindex returned
> non ok status:404, message:Not Found
> 
> It seems that it's changing /apache-solr-4.0.0/productindex to
> /solr/productindex but I can't find where this is happening.
> 
> Here is the relevant part of my sorl.xml
> 
> <cores adminPath="/admin/cores" defaultCoreName="productindex"
> host="${host:solr-sa-2.sys.id.build.com}" hostPort="${jetty.port:8080}"
> hostContext="${hostContext:}" zkClientTimeout="${zkClientTimeout:15000}">
>    <core name="productindex" instanceDir="productindex" />
>  </cores>
> </solr>
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-4-0-with-Solr-Cloud-404-tp4028101.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to