Example 1: To reindex people after changing the first name and last name tokenisation, use the following single-threaded query:
http://localhost:8080/solr4/admin/cores?action=reindex&query=TYPE:person
Example 2: To reindex jobs that failed or threw an exception when indexing, use the following query:
http://localhost:8080/solr4/admin/cores?action=reindex&query=EXCEPTIONMESSAGE:*
<query> AND created:"2015-08"
Query based reindexing is also useful when changing the property type, changing tokenisation, adding new properties to be treated as identifiers, or when reindexing synonyms.
In a sharded setup, the reindex query will have to be run on all the nodes. The query will run for all shards on any node.