tchlyah / couchmove

Java data migration tool for Couchbase
Apache License 2.0
39 stars 14 forks source link

FTS with custom type mapping not working in couchmove 3.0 #12

Closed bhattrahul2309 closed 3 years ago

bhattrahul2309 commented 4 years ago

With new couchmove 3.0, I am not able to create FTS index , where I have to create FTS index using custom type_field, and type mappings. The same FTS json was working fine in earlier couchmove 2.0 release. As I want to narrow down the FTS, only with specific attributes having the required value. Please provide your inputs.

Below the .fts file content under /db/migration, which I am trying to create.

{ "name": "problemSearch", "type": "fulltext-index", "params": { "doc_config": { "docid_prefix_delim": "", "docid_regexp": "", "mode": "type_field", "type_field": "_class" }, "mapping": { "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": { "com.bhatt.avengers.supermmanagement.entity.Problem": { "dynamic": true, "enabled": true } } }, "store": { "indexType": "scorch", "kvStoreName": "" } }, "sourceType": "couchbase", "sourceName": "fault_management" }

gilb77 commented 3 years ago

I have the same problem, Can someone help?

gkysaad commented 3 years ago

I've created a PR to fix this issue: https://github.com/differentway/couchmove/pull/13

tchlyah commented 3 years ago

@gkysaad, in case you didn't notice, version 3.1.1-SNAPSHOT has been automatically pushed when I merged the PR.

I'll push a final version as soon as you validate that everything is working as expected.

gkysaad commented 3 years ago

Thanks @tchlyah, I've tried the snapshot and everything seems to be working as expected.

tchlyah commented 3 years ago

Version 3.1.1 released