Reputation: 36
We are using Solr 5.2.1 with Zookeeper 3.4.6.
We would like to add an extra search field in the solr search schema, for that we have added filed in schema.xml however it is not reflecting to the solr index.
We have also tried below things - 1. Started Zookeeper as well as solr services. 2. Tried to reload the core
Could you please share what we need to do fix this issue?
Thank You in advance.
Bhagwat Mane
Upvotes: 0
Views: 422
Reputation: 36
Thank You Pihentagyu,
Short steps for above discussion -
Considering :
Follow below steps to reflect changes made in schema.xml to zookeeper configuration -
Where
Note : use zkcli.sh for linux.
Upvotes: 0
Reputation: 1308
Since you are using Solr cloud, you need to update the zookeeper with the new schema. This is done on the solr server in the server/scripts/cloud-scripts directory using the zkcli.sh script, as follows:
./zkcli.sh -cmd upconfig -confdir /opt/solr/server/solr/collection0/conf -confname configName -z zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
where configName is the name of the config (you can find this in the solr admin panel under cloud-->/configs), zookeeperX is the ip address of zookeeperX, and 2181 is the port number of the zookeeper.
Then, of course, you will need to index, adding data to that field as mentioned above.
Upvotes: 1