You can use the configset API:
https://lucene.apache.org/solr/guide/7_7/configsets-api.html
I don’t recommend to use Schema.xml , but managed Schemas:
https://lucene.apache.org/solr/guide/6_6/schema-api.html
For people new to Solr I generally recommend to read a recent book about Solr
from
http://lucene.apache.org/solr/guide/6_6/command-line-utilities.html
"Upload a configuration directory"
Take my advise and read the SolrCloud section of Solr Ref Guide.
It will answer most of your questions and is a good start.
Am 02.08.19 um 08:30 schrieb Salmaan Rashid Syed:
Hi Bernd,
Yet,
Hi Bernd,
Yet, another noob question.
Consider that my conf directory for creating a collection is _default. Suppose
now I made changes to managed-schema and conf.xml, How do I upload it to
external zookeeper at 2181 port?
Can you please give me the command that uploads altered config.xml and
to 1) yes, because -Djute.maxbuffer is going to JAVA as a start parameter.
to 2) I don't know because i never use internal zookeeper
to 3) the configs are located at solr/server/solr/configsets/
- choose one configset, make your changes and upload it to zookeeper
- when creating a
Hi Bernd,
Sorry for noob questions.
1) What do you mean by restart? Do you mean that I shoud issue ./bin/solr
stop -all?
And then issue these commands,
bin/solr restart -cloud -s example/cloud/node1/solr -p 8983
bin/solr restart -c -p 7574 -z localhost:9983 -s example/cloud/node2/solr
2)
Thank you, I will definitely try it.
Regards,
Salmaan
On Thu, Aug 1, 2019 at 5:40 PM Bernd Fehling
wrote:
>
>
> Am 01.08.19 um 13:57 schrieb Salmaan Rashid Syed:
> > After I make the -Djute.maxbuffer changes to Solr, deployed in
> production,
> > Do I need to restart the solr to be able to
Am 01.08.19 um 13:57 schrieb Salmaan Rashid Syed:
After I make the -Djute.maxbuffer changes to Solr, deployed in production,
Do I need to restart the solr to be able to add synonyms >1MB?
Yes, you have to restart Solr.
Or, Was this supposed to be done before putting Solr to production
After I make the -Djute.maxbuffer changes to Solr, deployed in production,
Do I need to restart the solr to be able to add synonyms >1MB?
Or, Was this supposed to be done before putting Solr to production ever?
Can we make chages when the Solr is running in production?
Thanks.
Regards,
Salmaan
The idea of using an external program could be good.
> Am 31.07.2019 um 08:06 schrieb Salmaan Rashid Syed
> :
>
> Hi all,
>
> Thanks for your invaluable and helpful answers.
>
> I currently don't have an external zookeeper loaded. I am working as per
> the documentation for solr cloud
Ad 1) it needs to be configured in Zookeeper server and Solr and all other ZK
clients
Ad 2) you never need to shut it down in production for updating Synonym files.
Use the config set API to reupload the full configuration included updated
synonyms:
Hi all,
Thanks for your invaluable and helpful answers.
I currently don't have an external zookeeper loaded. I am working as per
the documentation for solr cloud without external zookeeper. I will later
add the external zookeeper once the changes works as expected.
*1) Will I still need to make
You have to increase the -Djute.maxbuffer for large configs.
In Solr bin/solr/solr.in.sh use e.g.
SOLR_OPTS="$SOLR_OPTS -Djute.maxbuffer=1000"
This will increase maxbuffer for zookeeper on solr side to 10MB.
In Zookeeper zookeeper/conf/zookeeper-env.sh
SERVER_JVMFLAGS="$SERVER_JVMFLAGS
Aside that a 5 MB synonym file is rather strange (what is the use case for such
a large synonym file?) and that it will have impact on index size and/or query
time:
You can configure zookeeper server and the Solr client to allow larger files
using the jute.maxbuffer option.
> Am 30.07.2019 um
Hi Solr Users,
I have a very big synonym file (>5MB). I am unable to start Solr in cloud
mode as it throws an error message stating that the synonmys file is
too large. I figured out that the zookeeper doesn't take a file greater
than 1MB size.
I tried to break down my synonyms file to smaller
14 matches
Mail list logo