Commit a44c2f02 by Douglas Hall Committed by Douglas Hall

Use single shard for catalog index.

The catalog index is small in terms of number of documents and data
size. There is no reason to prematurely shard the index. In addition,
sharding seems to be affecting our ability to properly score search
results with such a small data set causing inconsistent results when
performing queries which match many documents in the index.

ENT-444
parent d0a4f82c
......@@ -363,8 +363,15 @@ SWAGGER_SETTINGS = {
# We are adding the lowercase analyzer and tweaking the ngram analyzers here,
# so we need to use these settings rather than the index defaults.
# We are making these changes to enable autocomplete for the typeahead endpoint.
# In addition we are specifying the number of shards and replicas that indices
# will be created with as recommended here:
# https://aws.amazon.com/blogs/database/get-started-with-amazon-elasticsearch-service-how-many-shards-do-i-need/
ELASTICSEARCH_INDEX_SETTINGS = {
'settings': {
'index': {
'number_of_shards': 1,
'number_of_replicas': 1
},
'analysis': {
'tokenizer': {
'haystack_edgengram_tokenizer': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment