Skip to content

Commit

Permalink
Turn off array indexing by default because it only works for MongoDB …
Browse files Browse the repository at this point in the history
…> 5.0.

Signed-off-by: Yufei Cai <yufei.cai@bosch.io>
  • Loading branch information
yufei-cai committed May 27, 2022
1 parent d5986cf commit 66fb5f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions thingsearch/service/src/main/resources/search.conf
Expand Up @@ -130,8 +130,9 @@ ditto {
}

stream {
# arrays bigger than this are not indexed. unlimited by default.
max-array-size = -1
# arrays bigger than this are not indexed.
# array indexing is turned off by default because it only works for MongoDB 5.0 or above.
max-array-size = 0
max-array-size = ${?THINGS_SEARCH_UPDATER_STREAM_MAX_ARRAY_SIZE}

# minimum delay between event dumps must be at least 1s
Expand Down

0 comments on commit 66fb5f4

Please sign in to comment.