In general you probably want to add a parameter "distrib=true" to your
search requests.
adm1n wrote:
I have 1 collection called index.
I created it like explained here: http://wiki.apache.org/solr/SolrCloud in
Example A: Simple two shard cluster section
here are the start up commands:
1)java -Dbootstrap_confdir=./solr/index/conf -Dcollection.configName=myconf
-DzkRun -DnumShards=2 -jar start.jar -Djetty.port=7500 >
logs/solr_server_java.`date +"%Y%m%d"`.log 2>&1 &
2)java -Dbootstrap_confdir=./solr/index/conf -Dcollection.configName=myconf
-Djetty.port=7501 -DzkHost=localhost:8500 -jar start.jar >
logs/solr_server_java.`date +"%Y%m%d"`.log 2>&1 &
Well no need to include bootstrap_confdir in the second startup. Adding
this parameter will load the config pointed to into ZK under the name
defined in collection.configName. This is a to-do-once task, and when
you start jetty #2 there is no need to add it. If you where not running
zk as part of a solr you shouldnt add the bootstrap_confdir either when
restarting #1 and #2 later (because the config would be stored once and
for all in ZK) - but since the zk in solr are probably not using the
same data-dir between startups you probably will need to add
boostrap_confdir every to the first solr every time time you start.
How was your collection named "index" instead of "collection1"?
Did you also load documents as explained on
http://wiki.apache.org/solr/SolrCloud, example A? Guess at least you
needed to change "collection1" to "index" in the urls.
I believe all you did was executing a bunch of commands from the
command-line. You might want to provide the full list of commands from
beginning to end, so that others can repeat your situation/problem.
in my http://localhost:7500/solr/#/~cloud There is only a chart of my
collection with the shards
It would probably also be nice to get this chart - could you attach it.
To get the clusterstate.json - click the "Tree" entry in the menu og
just go directly to http://192.168.78.195:8983/solr/#/~cloud?view=tree.
You should find the clusterstate.json there. Attach it.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Partial-results-returned-tp4026027p4026076.html
Sent from the Solr - User mailing list archive at Nabble.com.