Last modified: 2014-05-19 18:11:43 UTC
Repro: * Create index * Install GeoData with https://gerrit.wikimedia.org/r/115413 * Set $wgGeoDataUseCirrusSearch = true; * Try updating the index: $ php updateSearchIndexConfig.php --closeOk content index... Infering index identifier...wiki_content_first Index exists so validating... Validating number of shards...ok Validating number of replicas...ok Validating analyzers...different...corrected Validating mappings... Validating mapping for page type...different...failed! Couldn't update mappings. Here is elasticsearch's error message: MergeMappingException[Merge failed with failures {[mapper [text_bytes] has different index values]}]
Depending on the circumstances this is either expected behavior or a bug. If you haven't pulled new Cirrus code then this is likely a bug. Then it is likely caused by an update to the mapping for text_bytes and you can't --closeOk. You'll need to --reindexAndRemoveOk --indexIdentifier now. Or you are trying to use Elasticsearch 1.0 which we don't yet support. I'm working on that now.
I hit this last week in production. --reindexAndRemoveOk --indexIdentifier now worked around it, but a more graceful failure would be nice.