@Test void createIndexAndAliasShouldNotThrowWhenCalledSeveralTime() { new IndexCreationFactory(ElasticSearchConfiguration.DEFAULT_CONFIGURATION) .useIndex(INDEX_NAME) .addAlias(ALIAS_NAME) .createIndexAndAliases(client); }
public AliasSpecificationStep useIndex(IndexName indexName) { Preconditions.checkNotNull(indexName); return new AliasSpecificationStep(nbShards, nbReplica, waitForActiveShards, indexName); }
IndexCreationFactory { public AliasSpecificationStep useIndex(IndexName indexName) { Preconditions.checkNotNull(indexName); return new AliasSpecificationStep(nbShards, nbReplica, waitForActiveShards, indexName); } }
IndexCreationFactory { public AliasSpecificationStep useIndex(IndexName indexName) { Preconditions.checkNotNull(indexName); return new AliasSpecificationStep(nbShards, nbReplica, waitForActiveShards, indexName); } @Inject  IndexCreationFactory(ElasticSearchConfiguration configuration); }
IndexCreationFactory { public AliasSpecificationStep useIndex(IndexName indexName) { Preconditions.checkNotNull(indexName); return new AliasSpecificationStep(nbShards, nbReplica, waitForActiveShards, indexName); } @Inject  IndexCreationFactory(ElasticSearchConfiguration configuration); AliasSpecificationStep useIndex(IndexName indexName); }
IndexCreationFactory { public AliasSpecificationStep useIndex(IndexName indexName) { Preconditions.checkNotNull(indexName); return new AliasSpecificationStep(nbShards, nbReplica, waitForActiveShards, indexName); } @Inject  IndexCreationFactory(ElasticSearchConfiguration configuration); AliasSpecificationStep useIndex(IndexName indexName); static final String CASE_INSENSITIVE; static final String KEEP_MAIL_AND_URL; static final String SNOWBALL_KEEP_MAIL_AND_URL; static final String ENGLISH_SNOWBALL; }