Hi Daniel; That's good to hear that I could help to solve your problem.
Thanks; Furkan KAMACI 2013/12/11 Daniel Bryant <daniel.bry...@tai-dev.co.uk> > Ah! That's solved it - there were multiple missing (inactive) shards shown > in the Cloud panel. This is bizarre (as I'm specifying numShards=1 on the > JVM options), but deleting my zoo_data folder under the solr directory, and > then restarting SolrCloud resulted in queries returning correct values. > > Many thanks for the very helpful pointer Furkan! This has no doubt saved > me many hours of continued pondering and frustration. > > Best wishes, > > Daniel > > > > > On 10/12/2013 21:06, Furkan KAMACI wrote: > >> Hi Daniel; >> >> Could you open the Solr admin page and check it? If there is no error >> message click on the Cloud link at left panel check the status of your >> node? >> >> Thanks; >> Furkan KAMACI >> >> 10 Aralık 2013 Salı tarihinde Daniel Bryant <daniel.bry...@tai-dev.co.uk> >> adlı kullanıcı şöyle yazdı: >> >>> Hi, >>> >>> I'm getting the error 'msg: "no servers hosting shard: " ' when trying to >>> >> search on a freshly created SolrCloud instance with an embedded ZooKeeper >> and a single shard? >> >>> My solr.xml is as follows: >>> >>> <solr> >>> <cores adminPath="/admin/cores" > >>> <core name="offerings" instanceDir="offerings" shard="1"/> >>> <core name="vouchers" instanceDir="vouchers" shard="1"/> >>> <core name="temp_offerings" instanceDir="temp_offerings" >>> >> shard="1"/> >> >>> <core name="temp_vouchers" instanceDir="temp_vouchers" >>> shard="1"/> >>> </cores> >>> </solr> >>> >>> And all the directories referenced in the solr.xml are present under the >>> >> solr directory >> >>> I'm starting my SolrCloud with the following command: >>> >>> java -Dbootstrap_confdir=./solr/offerings/conf >>> >> -Dcollection.configName=myconf -DzkRun -DnumShards=1 -jar start.jar >> >>> Everything initialises fine, and I can see all of the schemas correctly >>> >> via the admin console, but as soon as I execute a query I get the above >> error? I'm assuming I'm not telling Solr correctly that it is the only >> shard, but I am passing that as a JVM argument at startup? >> >>> Any thoughts would be most appreciated! >>> >>> Best wishes, >>> >>> Daniel >>> >>> >>> >>> -- >>> *Daniel Bryant | Software Development Consultant | www.tai-dev.co.uk< >>> >> http://www.tai-dev.co.uk/>* >> >>> daniel.bry...@tai-dev.co.uk <mailto:daniel.bry...@tai-dev.co.uk> | +44 >>> >> (0) 7799406399 | Twitter: @taidevcouk <https://twitter.com/taidevcouk> >> > > -- > *Daniel Bryant | Software Development Consultant | www.tai-dev.co.uk < > http://www.tai-dev.co.uk/>* > daniel.bry...@tai-dev.co.uk <mailto:daniel.bry...@tai-dev.co.uk> | +44 > (0) 7799406399 | Twitter: @taidevcouk <https://twitter.com/taidevcouk> >