Skip to content

Commit

Permalink
Allow replica to be zero (#273)
Browse files Browse the repository at this point in the history
remove condition that only sets replica if it is greater than 0

Signed-off-by: Vijayan Balasubramanian <balasvij@amazon.com>
  • Loading branch information
VijayanB authored Apr 3, 2024
1 parent 98a71f7 commit 0771213
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vectorsearch/indices/faiss-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{%- if target_index_primary_shards is defined and target_index_primary_shards %}
,"number_of_shards": {{ target_index_primary_shards }}
{%- endif %}
{%- if target_index_replica_shards is defined and target_index_replica_shards %}
{%- if target_index_replica_shards is defined %}
,"number_of_replicas": {{ target_index_replica_shards }}
{%- endif %}
}
Expand Down
2 changes: 1 addition & 1 deletion vectorsearch/indices/lucene-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{%- if target_index_primary_shards is defined and target_index_primary_shards %}
,"number_of_shards": {{ target_index_primary_shards }}
{%- endif %}
{%- if target_index_replica_shards is defined and target_index_replica_shards %}
{%- if target_index_replica_shards is defined %}
,"number_of_replicas": {{ target_index_replica_shards }}
{%- endif %}
{%- if hnsw_ef_search is defined and hnsw_ef_search %}
Expand Down
2 changes: 1 addition & 1 deletion vectorsearch/indices/nmslib-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{%- if target_index_primary_shards is defined and target_index_primary_shards %}
,"number_of_shards": {{ target_index_primary_shards }}
{%- endif %}
{%- if target_index_replica_shards is defined and target_index_replica_shards %}
{%- if target_index_replica_shards is defined %}
,"number_of_replicas": {{ target_index_replica_shards }}
{%- endif %}
{%- if hnsw_ef_search is defined and hnsw_ef_search %}
Expand Down

0 comments on commit 0771213

Please sign in to comment.