Reputation: 11
I am a new learner of Solr. Now I want to make my own schema.xml. So I add some fields. I stop the solr and restart it. In the admin of solr, I can see the changes in the schema choice. But the content of schema browser doesn't changes. And when I want to index some document. There is an error that says there is no field which I just added in the schema. The content of schema browser is not same as the schema file.
Upvotes: 1
Views: 2437
Reputation: 349
from here I went to the path of my core instance to make the changes.
/usr/local/Cellar/[email protected]/7.7.3_1/server/solr/drupal
then I was able to confirm the changes by clicking on Files and scrolling to where I made the change.
Upvotes: 0
Reputation: 4191
Changing the schema of a core doesn't change the documents you already have there, which is why they look the same even after you restart the Solr service. You need to re-upload the documents with the new fields specified (if they are required
fields) after you make a schema change to get these new fields for existing documents.
Upvotes: 3