Monday, 18 November 2013

Solr command to delete records from a index

Solr command to delete records from a index

example:

http://localhost:8983/solr/<index-name>/update?stream.body=<delete><query>*:*</query></delete>&commit=true

There can be specific query for which data has to be deleted.

example:

http://localhost:8983/solr/<index-name>/update?stream.body=<delete><query>contenttype:"RSS"</query></delete>&commit=true


No comments:

Post a Comment