Search code examples
solrsolrj

Solr dynamic schema updation using solrj


  • I am a new to solr working on solr version 4.8.0. I want to add/update/delete fields in the schema.xml at runtime using solrj. i can create or delete a core using solrj.
  • For adding documents or search using solrj, i referred this link
  • I want to learn advance functionality in solrj. I need any good tutorials or example code. Can anyone please guide me?

Thanks in advance.


Solution

  • I think this page - https://wiki.apache.org/solr/SchemaRESTAPI contains all you need. Pay attention to Modifying the schema section. Although, it's not SolrJ way but it will work fine for you.