i’ve index on 11 columns out of which 4 columns we have ngram index of min 2 and max 13
so some weird issue coming for some words like “Other” is here case
using syntax to search with and conditions
{query:{ query: “+apple +mobile”}}
{query:{query:“+Other”}}
below is my index def:
{
"type": "fulltext-index",
"name": "product-search-fts-c1",
"uuid": "1a2692d6dd5f9270",
"sourceType": "gocbcore",
"sourceName": "test-bucket",
"sourceUUID": "5c6b61f7be43d99d8efb1035c9b9e4e9",
"planParams": {
"maxPartitionsPerPIndex": 1024,
"indexPartitions": 1
},
"params": {
"doc_config": {
"docid_prefix_delim": "",
"docid_regexp": "",
"mode": "scope.collection.type_field",
"type_field": "type"
},
"mapping": {
"analysis": {
"analyzers": {
"substringMatcher": {
"token_filters": [
"to_lower",
"substringMatcher"
],
"tokenizer": "unicode",
"type": "custom"
}
},
"token_filters": {
"substringMatcher": {
"max": 13,
"min": 1,
"type": "ngram"
}
}
},
"default_analyzer": "standard",
"default_datetime_parser": "dateTimeOptional",
"default_field": "_all",
"default_mapping": {
"dynamic": true,
"enabled": false
},
"default_type": "_default",
"docvalues_dynamic": false,
"index_dynamic": true,
"store_dynamic": false,
"type_field": "_type",
"types": {
"_default.bridgeProduct": {
"dynamic": false,
"enabled": true,
"properties": {
"name": {
"dynamic": false,
"enabled": true,
"fields": [
{
"analyzer": "substringMatcher",
"docvalues": true,
"include_in_all": true,
"include_term_vectors": true,
"index": true,
"name": "name",
"store": true,
"type": "text"
}
]
},
"subtype": {
"dynamic": false,
"enabled": true,
"fields": [
{
"analyzer": "substringMatcher",
"docvalues": true,
"include_in_all": true,
"include_term_vectors": true,
"index": true,
"name": "subtype",
"store": true,
"type": "text"
}
]
}
}
}
}
},
"store": {
"indexType": "scorch",
"segmentVersion": 15
}
},
"sourceParams": {}
}