I think its best to use available APIs. Here are the list of apis for managing synonyms and stop words
https://cwiki.apache.org/confluence/display/solr/Managed+Resources And this blog post with details https://lucidworks.com/blog/2014/03/31/introducing-solrs-restmanager-and-managed-stop-words-and-synonyms/ On Tue, Apr 12, 2016 at 4:39 AM, iambest <srinivas4...@gmail.com> wrote: > Is there a solrj API to add synonyms or stop words using the Managed > Resources API? I have to programmatically add them, what is the best way? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solrj-API-for-Managed-Resources-tp4269454.html > Sent from the Solr - User mailing list archive at Nabble.com. >