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(
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue