Details
-
Bug
-
Resolution: Fixed
-
Critical
-
7.0.0, 7.0.1, 7.0.2, 7.1.0
-
Untriaged
-
1
-
Unknown
Description
Sample index definition ..
{
|
"name": "temp", |
"type": "fulltext-index", |
"params": { |
"doc_config": { |
"mode": "scope.collection.type_field", |
"type_field": "type" |
},
|
"mapping": { |
"default_analyzer": "standard", |
"default_datetime_parser": "dateTimeOptional", |
"default_field": "_all", |
"default_mapping": { |
"enabled": false |
},
|
"type_field": "_type", |
"types": { |
"_default._default": { |
"dynamic": true, |
"enabled": true |
}
|
}
|
},
|
"store": { |
"indexType": "scorch" |
}
|
},
|
"sourceType": "gocbcore", |
"sourceName": "temp", |
"planParams": { |
"indexPartitions": 1 |
}
|
}
|
Sample document in temp._default._default ..
{
|
"click": "to edit", |
"with JSON": "there are no reserved field names", |
"type": "" |
}
|
This document fails to be indexed because of the type determined for it is "", which matches the type retrieved for the collection _default (which is "" because it has no type mapping) - so the type mapping expected for the document becomes ..
_default._default.
|