Hi @aditi.ahuja and @abhinav
Thanks for your reply.
Yes, @aditi.ahuja , I confirmed it works with the analysis wizard but I don’t know why my FTS doesn’t work.
I assigned the custom analyzer to that field and I mentioned this field at query. Please refer to the below FTS settings and query: FYI, the target field name is “value” and the custom analyzer is “all-words”.
{
"type": "fulltext-index",
"name": "test-value",
"uuid": "223e9e7211a5670e",
"sourceType": "gocbcore",
"sourceName": "my-couchbase",
"sourceUUID": "46d8fdb6a3b6c66d824b9bbf2598ff24",
"planParams": {
"maxPartitionsPerPIndex": 1024,
"indexPartitions": 1
},
"params": {
"doc_config": {
"docid_prefix_delim": "",
"docid_regexp": "",
"mode": "scope.collection.type_field",
"type_field": "type"
},
"mapping": {
"analysis": {
"analyzers": {
"all-words": {
"token_filters": [
"to_lower"
],
"tokenizer": "unicode",
"type": "custom"
}
}
},
"default_analyzer": "all-words",
"default_datetime_parser": "dateTimeOptional",
"default_field": "_all",
"default_mapping": {
"dynamic": false,
"enabled": false
},
"default_type": "_default",
"docvalues_dynamic": false,
"index_dynamic": false,
"store_dynamic": false,
"type_field": "_type",
"types": {
"trans.test-trans": {
"dynamic": false,
"enabled": true,
"properties": {
"value": {
"dynamic": false,
"enabled": true,
"fields": [
{
"analyzer": "all-words",
"index": true,
"name": "value",
"store": true,
"type": "text"
}
]
}
}
}
}
},
"store": {
"indexType": "scorch",
"segmentVersion": 15
}
},
"sourceParams": {}
}
and Query is :
SELECT * FROM `my-couchbase`.`trans`.`test-trans` AS t1
WHERE SEARCH(t1, { "explain": false, "query": { "match": "from", "field": "value" } })
But this query still fails to find “John was from Sydney.”.
Please help me to find what I missed?
Many thanks and looking for your advice.
Jin