Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
Cheshire-Cat
-
Untriaged
-
1
-
Unknown
Description
Build: 7.0.0-1834
- Load dataset attached
- Create fts index where languages_known is an array element with below:
{
"type": "fulltext-index",
"name": "custom_index",
"uuid": "5a75fa51793567fe",
"sourceType": "gocbcore",
"sourceName": "default",
"sourceUUID": "f5df4bc0dc538e0089e1f4697f57a92d",
"planParams": {
"maxPartitionsPerPIndex": 171
},
"params": {
"doc_config": {
"docid_prefix_delim": "",
"docid_regexp": "",
"mode": "type_field",
"type_field": "type"
},
"mapping": {
"analysis": {},
"default_analyzer": "standard",
"default_datetime_parser": "dateTimeOptional",
"default_field": "_all",
"default_mapping": {
"dynamic": true,
"enabled": false
},
"default_type": "_default",
"docvalues_dynamic": true,
"index_dynamic": true,
"store_dynamic": false,
"type_field": "type",
"types": {
"emp": {
"dynamic": false,
"enabled": true,
"properties": {
"languages_known": {
"dynamic": false,
"enabled": true,
"fields": [
{
"analyzer": "keyword",
"include_in_all": true,
"include_term_vectors": true,
"index": true,
"name": "languages_known",
"type": "text"
}
]
},
"manages": {
"dynamic": false,
"enabled": true,
"properties": {
"team_size": {
"dynamic": false,
"enabled": true,
"fields": [
{
"include_in_all": true,
"include_term_vectors": true,
"index": true,
"name": "team_size",
"type": "number"
}
]
}
}
},
"mutated": {
"dynamic": false,
"enabled": true,
"fields": [
{
"include_in_all": true,
"include_term_vectors": true,
"index": true,
"name": "mutated",
"type": "number"
}
]
}
}
}
}
},
"store": {
"indexType": "scorch",
"mossStoreOptions": {}
}
},
"sourceParams": {}
}
- Create GSI primary index
- For the below Flex query, fts index returns 148 results:
select meta().id from default USE INDEX (custom_index USING FTS) where type = "emp" and languages_known = "Sinhalese"
- Same query with GSI returns 0 results
select meta().id from default USE INDEX (custom_index USING GSI) where type = "emp" and languages_known = "Sinhalese"
- Explain plan for Flex Query:
{
"#operator": "Sequence",
"~children": [
{
"#operator": "IndexFtsSearch",
"covers": [
"cover ((((`default`.`type`) = \"emp\") and ((`default`.`languages_known`) = \"Sinhalese\")))",
"cover ((meta(`default`).`id`))"
],
"index": "custom_index",
"index_id": "5a75fa51793567fe",
"keyspace": "default",
"namespace": "default",
"search_info": {
"field": "\"\"",
"options": "{\"index\": \"custom_index\"}",
"outname": "out",
"query": "{\"query\": {\"field\": \"languages_known\", \"term\": \"Sinhalese\"}, \"score\": \"none\"}"
},
"using": "fts"
},
{
"#operator": "Parallel",
"~child": {
"#operator": "Sequence",
"~children": [
{
"#operator": "Filter",
"condition": "cover ((((`default`.`type`) = \"emp\") and ((`default`.`languages_known`) = \"Sinhalese\")))"
},
{
"#operator": "InitialProject",
"result_terms": [
{
"expr": "cover ((meta(`default`).`id`))"
}
]
}
]
}
}
]
}
Attachments
For Gerrit Dashboard: MB-38946 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
132844,2 | MB-38946 Allow http for local IP addresses | unstable | eventing | Status: MERGED | +2 | +1 |