Yup. I added document using admin rest api and it matched on the log.
And after few restarts of sync gateway I encountered this on logs:
2021-01-06T23:05:46.967+08:00 ==== Couchbase Sync Gateway/2.7.3(3;33d352f) CE ====
2021-01-06T23:05:46.968+08:00 [WRN] Using deprecated config option: "log". Use "logging.console.log_keys" instead. -- rest.(*ServerConfig).deprecatedConfigLoggingFallback.func5() at config.go:763
2021-01-06T23:05:46.968+08:00 [WRN] Deprecated log key: "REST+" found. Changing to: "REST". -- base.ToLogKey.func1() at log_keys.go:175
2021-01-06T23:05:46.968+08:00 [WRN] Invalid log key: REST+ -- base.ToLogKey.func2() at log_keys.go:185
2021-01-06T23:05:46.968+08:00 [WRN] Deprecated log key: "CRUD+" found. Changing to: "CRUD". -- base.ToLogKey.func1() at log_keys.go:175
2021-01-06T23:05:46.968+08:00 [WRN] Deprecated log key: "Events+" found. Changing to: "Events". -- base.ToLogKey.func1() at log_keys.go:175
2021-01-06T23:05:46.968+08:00 [INF] Logging: Console to stderr
2021-01-06T23:05:46.968+08:00 [INF] Logging: Files to /home/sync_gateway/logs
2021-01-06T23:05:46.968+08:00 [INF] Logging: Console level: info
2021-01-06T23:05:46.968+08:00 [INF] Logging: Console keys: [CRUD Events HTTP HTTP+]
2021-01-06T23:05:46.968+08:00 [INF] Logging: Redaction level: none
2021-01-06T23:05:46.968+08:00 [INF] requestedSoftFDLimit < currentSoftFdLimit (5000 < 65535) no action needed
2021-01-06T23:05:46.968+08:00 [INF] Logging stats with frequency: 1m0s
2021-01-06T23:05:46.968+08:00 [INF] Opening db /{db} as bucket "{bucket}", pool "default", server <{server_url}:8091>
2021-01-06T23:05:46.968+08:00 [INF] GoCBCustomSGTranscoder Opening Couchbase database {suites} on <{server_url}:8091> as user "Administrator"
2021-01-06T23:05:46.970+08:00 [INF] Auth: Attempting credential authentication {server_url}:8091?http_idle_conn_timeout=90000&http_max_idle_conns=64000&http_max_idle_conns_per_host=256&kv_pool_size=2&n1ql_timeout=75000&operation_tracing=false
2021-01-06T23:05:46.977+08:00 [INF] Successfully opened bucket {bucket_name}
2021-01-06T23:05:47.049+08:00 [INF] Set query timeouts for bucket {bucket} to cluster:1m15s, bucket:1m15s
2021-01-06T23:05:47.049+08:00 [INF] Initializing indexes with numReplicas: 0...
2021-01-06T23:05:47.946+08:00 [INF] Query: Index sg_channels_x1 doesn't exist, creating...
2021-01-06T23:05:47.962+08:00 [WRN] Error creating index sg_channels_x1: Error creating index with statement: CREATE INDEX `sg_channels_x1` ON `{bucket}`(ALL (ARRAY [op.name, LEAST(meta().xattrs._sync.sequence,op.val.seq), IFMISSING(op.val.rev,null), IFMISSING(op.val.del,null)] FOR op IN OBJECT_PAIRS(meta().xattrs._sync.channels) END), meta().xattrs._sync.rev, meta().xattrs._sync.sequence, meta().xattrs._sync.flags) with {"retain_deleted_xattr":true,"defer_build":true}. Error: [3000] Expression not indexable: array [(`op`.`name`), least((((meta().`xattrs`).`_sync`).`sequence`), ((`op`.`val`).`seq`)), ifmissing(((`op`.`val`).`rev`), null), ifmissing(((`op`.`val`).`del`), null)] for `op` in object_pairs((((meta().`xattrs`).`_sync`).`channels`)) end - at ,
Expression not indexable: (((meta().`xattrs`).`_sync`).`rev`) - at ,
Expression not indexable: (((meta().`xattrs`).`_sync`).`sequence`) - at ,
Expression not indexable: (((meta().`xattrs`).`_sync`).`flags`) - at ) - will retry. -- db.(*SGIndex).createIfNeeded.func1() at indexes.go:256
2021-01-06T23:05:47.972+08:00 [WRN] Error creating index sg_channels_x1: Error creating index with statement: CREATE INDEX `sg_channels_x1` ON `{bucket}`(ALL (ARRAY [op.name, LEAST(meta().xattrs._sync.sequence,op.val.seq), IFMISSING(op.val.rev,null), IFMISSING(op.val.del,null)] FOR op IN OBJECT_PAIRS(meta().xattrs._sync.channels) END), meta().xattrs._sync.rev, meta().xattrs._sync.sequence, meta().xattrs._sync.flags) with {"retain_deleted_xattr":true,"defer_build":true}. Error: [3000] Expression not indexable: array [(`op`.`name`), least((((meta().`xattrs`).`_sync`).`sequence`), ((`op`.`val`).`seq`)), ifmissing(((`op`.`val`).`rev`), null), ifmissing(((`op`.`val`).`del`), null)] for `op` in object_pairs((((meta().`xattrs`).`_sync`).`channels`)) end - at ,
Expression not indexable: (((meta().`xattrs`).`_sync`).`rev`) - at ,
Expression not indexable: (((meta().`xattrs`).`_sync`).`sequence`) - at ,
Am I missing something?