简体   繁体   中英

Solr: Synonyms using the Managed Resources REST API

How do I change an initArgs value for Synonyms using the Managed Resources REST API?

In particular, I need to change the following:

"initArgs":{"ignoreCase":false}

... to true .

https://cwiki.apache.org/confluence/display/solr/Managed+Resources#ManagedResources-Synonyms

I don't see any mention in the documentation about changing initArgs .

You can edit the file directly after it has been created, but the docs explicitly say this is not the correct way to change data in this file. (it does work however).

found it. try&error style ;-)

curl -X POST -H 'Content-type:application/json' --data-binary '{"initArgs":{"ignoreCase":true}}' "http://<solr-host>/solr/<core>/schema/analysis/synonyms/german"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM