Skip to content

Commit b7a6262

Browse files
committed
[FEATURE] add settingsKey when creating the index
With the settingsKey it is possible to set further Configuration for the Index by using the alias
1 parent 9dae6d5 commit b7a6262

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer/NodeIndexer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ public function setIndexNamePostfix($indexNamePostfix) {
124124
* @return Index
125125
*/
126126
public function getIndex() {
127-
return $this->searchClient->findIndex($this->getIndexName());
127+
$index = $this->searchClient->findIndex($this->getIndexName());
128+
$index->setSettingsKey($this->searchClient->getIndexName());
129+
return $index;
128130
}
129131

130132
/**

0 commit comments

Comments
 (0)