disable refresh interval. start with 3 shards

This commit is contained in:
Victor Shyba 2021-01-25 00:18:03 -03:00
parent 82eec3d8d7
commit 1010068ddb

View file

@ -29,10 +29,15 @@ class SearchIndex:
await self.client.indices.create(
self.index,
{"settings":
{"analysis":
{"analyzer": {"default": {"tokenizer": "whitespace", "filter": ["lowercase", "porter_stem" ]}}}
}
}
{"analysis":
{"analyzer": {
"default": {"tokenizer": "whitespace", "filter": ["lowercase", "porter_stem"]}}},
"index":
{"refresh_interval": -1,
"number_of_shards": 3}
},
}
)
except Exception as e:
raise