Example documents
1 - caption: Mövenpick Airport, Nuremburg
2 - caption: Movenpick Ms Hamees, Qena
My index looks like this
json
{
“name”: “giata_properties_custom”,
“type”: “fulltext-index”,
“params”: {
“doc_config”: {
“mode”: “type_field”,
“type_field”: “type”
},
“mapping”: {
“default_analyzer”: “standard”,
“default_datetime_parser”: “dateTimeOptional”,
“default_field”: “_all”,
“default_mapping”: {
“dynamic”: true,
“enabled”: false
},
“default_type”: “_default”,
“index_dynamic”: true,
“store_dynamic”: false,
“types”: {
“properties.CustomPropertyDetailsType”: {
“dynamic”: false,
“enabled”: true,
“properties”: {
“caption”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“analyzer”: “”,
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “caption”,
“store”: true,
“type”: “text”
}
]
},
“giataId”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“analyzer”: “”,
“include_in_all”: false,
“include_term_vectors”: false,
“index”: false,
“name”: “giataId”,
“store”: true,
“type”: “text”
}
]
},
“name”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“analyzer”: “”,
“include_in_all”: false,
“include_term_vectors”: false,
“index”: false,
“name”: “name”,
“store”: true,
“type”: “text”
}
]
}
}
}
}
},
“store”: {
“kvStoreName”: “mossStore”
}
},
“sourceType”: “couchbase”,
“sourceName”: “giata”,
“sourceUUID”: “4c0347224f55790cd9500ca2a6165102”,
“sourceParams”: {},
“planParams”: {
“maxPartitionsPerPIndex”: 171,
“numReplicas”: 0
},
“uuid”: “53392badf825285c”
}
Now my objective is return both results if someone either inputs Mövenpick
or Movenpick
… I tried my luck with analyzers but I couldn’t make it. Would appreciate any input as I’m not an expert on FTS and bleve.
Thanks,