I am using solr to make search on my database, and am trying to add a new field (publisher_id of an article) in conf/schema.xml to get the value of the publisher_id after making search on my database, i didn’t find any field name equivalent to this field. so how can i add it as a field in schema.xml to be returned with the searched values (body,title,date and publisher_id) of the article?
Share
First of all: what kind of data is stored in publisher_id?
If it is a number (int, log) so add an field with the corresponding type, like:
After adding a field to the schema.xml, you have to restart the solr-instance and rebuild your index.