Skip to content

Commit

Permalink
HSEARCH-2219 Remove an unnecessary Elasticsearch mapping creation
Browse files Browse the repository at this point in the history
The mappings are already created by a call to createMappings from
ElasticsearchIndexManager. Before this patch, the mappings were created,
and then updated with the exact same content.
  • Loading branch information
yrodiere authored and Sanne committed Dec 19, 2016
1 parent 32565f5 commit 6076ecc
Showing 1 changed file with 0 additions and 6 deletions.
Expand Up @@ -50,12 +50,6 @@ public void createIndex(IndexMetadata indexMetadata, ExecutionOptions executionO
schemaAccessor.createIndex( indexName, indexMetadata.getSettings(), executionOptions );

schemaAccessor.waitForIndexStatus( indexName, executionOptions );

for ( Map.Entry<String, TypeMapping> entry : indexMetadata.getMappings().entrySet() ) {
String mappingName = entry.getKey();
TypeMapping mapping = entry.getValue();
schemaAccessor.putMapping( indexName, mappingName, mapping );
}
}

@Override
Expand Down

0 comments on commit 6076ecc

Please sign in to comment.