Skip to content

Commit 684c1d9

Browse files
committed
Merge pull request #2 from polyfractal/preference_primary
GET requests should go to primary shard
2 parents de23faf + 0653ecb commit 684c1d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/IndexRotator.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public function getPrimaryIndex()
8686
$primaryPayload = [
8787
'index' => $this->configurationIndexName,
8888
'type' => static::TYPE_CONFIGURATION,
89-
'id' => static::PRIMARY_ID
89+
'id' => static::PRIMARY_ID,
90+
'preference' => '_primary'
9091
];
9192
try {
9293
$primary = $this->engine->get($primaryPayload);

0 commit comments

Comments
 (0)