Details
-
Bug
-
Resolution: Fixed
-
None
-
*Location*: http://developer.couchbase.com/documentation/server/4.5/n1ql/n1ql-language-reference/indexing-arrays.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
*Referrer*: http://developer.couchbase.com/documentation/server/4.5/introduction/whats-new.html
*Screen Resolution*: 1440 x 900
*Location*: http://developer.couchbase.com/documentation/server/4.5/n1ql/n1ql-language-reference/indexing-arrays.html *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 *Referrer*: http://developer.couchbase.com/documentation/server/4.5/introduction/whats-new.html *Screen Resolution*: 1440 x 900
Description
"The total size of the array index keys cannot exceed 10K for a single document. The array index key size is calculated using the total size of all array elements being indexed in a single document. If the total array index key size exceeds 10K in a single document, the items are skipped. The following error is logged to indicate that an item is skipped when building the index: "Encoded array key is too long" in the indexer.log file. "
We should be specific what 10K is, I'm assuming this is 10KB, some people might read that as 10,000 characters, it's not clear.
Also, the error message "Encoded array key is too long" doesn't appear in the source, there are a couple similar potential error messages. "Encoded secondary array key is too long" and "Encoded secondary key is too long" You can see them at http://src.couchbase.org/source/xref/4.5.0/goproj/src/github.com/couchbase/indexing/secondary/indexer/index_entry.go#132