loopback-connector-elastic-search icon indicating copy to clipboard operation
loopback-connector-elastic-search copied to clipboard

Connector ignores mapping settings

Open Arbuzov opened this issue 4 years ago • 0 comments

My data source definition

{ "name": "Elasticsearch", "connector": "esv6", "version": 7, "index": ".kibana", "configuration": { "node": "http://elasticsearch:9200", "requestTimeout": 30000, "pingTimeout": 3000 }, "defaultSize": "100", "mappingProperties": { "type": { "type": "keyword" }, "docType": { "type": "alias", "path": "type" } } }

Meantime during the boot.

Try http://[::1]:3000/ping elasticsearch Nothing to resurrect +1s elasticsearch Serializing { properties: { type: { type: 'keyword' }, docType: { type: 'keyword', index: true } } } +1s elasticsearch qserialize {} +2ms elasticsearch Starting a new request { method: 'PUT', path: '/.kibana/_mapping', body: '{"properties":{"type":{"type":"keyword"},"docType":{"type":"keyword","index":true}}}', querystring: '', headers: { 'User-Agent': 'elasticsearch-js/7.6.1 (win32 10.0.18363-x64; Node.js v12.0.0)', 'Content-Type': 'application/json', 'Content-Length': '84' }, timeout: 30000 } +1s elasticsearch Deserializing {"error":{"root_cause":[{"type":"remote_transport_exception","reason":"[central-nms-2][172.18.0.2:9300][indices:admin/mapping/put]"}],"type":"illegal_argument_exception","reason":"Cannot merge a field alias mapping [docType] with a mapping that is not for a field alias."},"status":400} +145ms

Arbuzov avatar Apr 04 '20 16:04 Arbuzov