Example 1: To reindex people after changing the first name and last name tokenisation, use the following single-threaded query:
Example 2: To reindex jobs that failed or threw an exception when indexing, use the following query:
<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.