Thursday, March 10, 2011

Updating a Solr Index

Clearing out an existing Solr index when you want to update your schema is easy with curl.

curl http://localhost:8080/solr/update --data-binary '*:*' -H 'Content-type:text/xml; charset=utf-8'


*replace port 8080 with the port # Solr is running under.

Stop servlet container
Change the schema.xml
Start servlet container

In the admin tool run a *:* query for the results.

No comments:

Post a Comment