disable refresh interval. start with 3 shards
This commit is contained in:
parent
82eec3d8d7
commit
1010068ddb
1 changed files with 9 additions and 4 deletions
|
@ -29,10 +29,15 @@ class SearchIndex:
|
||||||
await self.client.indices.create(
|
await self.client.indices.create(
|
||||||
self.index,
|
self.index,
|
||||||
{"settings":
|
{"settings":
|
||||||
{"analysis":
|
{"analysis":
|
||||||
{"analyzer": {"default": {"tokenizer": "whitespace", "filter": ["lowercase", "porter_stem" ]}}}
|
{"analyzer": {
|
||||||
}
|
"default": {"tokenizer": "whitespace", "filter": ["lowercase", "porter_stem"]}}},
|
||||||
}
|
"index":
|
||||||
|
{"refresh_interval": -1,
|
||||||
|
"number_of_shards": 3}
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Add table
Reference in a new issue