USING CB: 6.5.0
DOCS
ID = 1 { "lid": "a", "iso": true, "type": "foo" }
ID = 2
{
"lid": "b",
"iso": true,
"type": "foo"
}
FTS INDEX CALLED “ISO”
{
“type”: “fulltext-index”,
“name”: “iso”,
“uuid”: “466848dd08c7b0f3”,
“sourceType”: “couchbase”,
“sourceName”: “test”,
“sourceUUID”: “56f1e103ed8d8ba5c7f0d0905a895eea”,
“planParams”: {
“maxPartitionsPerPIndex”: 171,
“indexPartitions”: 6
},
“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”: {
“foo”: {
“dynamic”: false,
“enabled”: true,
“properties”: {
“iso”: {
“dynamic”: false,
“enabled”: true,
“fields”: [
{
“analyzer”: “keyword”,
“index”: true,
“name”: “iso”,
“type”: “boolean”
}
]
}
}
}
}
},
“store”: {
“indexType”: “scorch”
}
},
“sourceParams”: {}
}
FTS INDEX 2 CALLED “LID”
{
“type”: “fulltext-index”,
“name”: “lid”,
“uuid”: “3fdf660c104cf4ec”,
“sourceType”: “couchbase”,
“sourceName”: “test”,
“sourceUUID”: “56f1e103ed8d8ba5c7f0d0905a895eea”,
“planParams”: {
“maxPartitionsPerPIndex”: 171,
“indexPartitions”: 6
},
“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”: {
“foo”: {
“dynamic”: false,
“enabled”: true,
“properties”: {
“lid”: {
“dynamic”: false,
“enabled”: true,
“fields”: [
{
“analyzer”: “keyword”,
“index”: true,
“name”: “lid”,
“type”: “text”
}
]
}
}
}
}
},
“store”: {
“indexType”: “scorch”
}
},
“sourceParams”: {}
}
ALIAS
{
“type”: “fulltext-alias”,
“name”: “foo-alias”,
“uuid”: “61babb5c8b31882b”,
“sourceType”: “nil”,
“planParams”: {},
“params”: {
“targets”: {
“iso”: {},
“lid”: {}
}
},
“sourceParams”: null
}
QUERY 1 CONJUCTS: TO /api/index/foo-alias/query
{
“from”: 0,
“explain”: true,
“size”: 100,
“query”: {
“conjuncts”: [
{
“disjuncts”: [
{
“field”: “lid”,
“match”: “a”
},
{
“field”: “lid”,
“match”: “b”
}
]
},
{
“field”: “iso”,
“bool”: true
}
]
}
}
ISSUES:
- I do not receive any results, I would except to receive both docs back.
- If I create one index with both fields the query works.