feat: add raw version of text fields

This commit is contained in:
2018-11-02 16:44:02 -07:00
parent 58d405396e
commit 6591e7eaa8

View File

@@ -26,8 +26,8 @@ export async function createIndex(client, index) {
mappings: {
[doctype]: {
properties: {
operator: { type: 'keyword' },
aircraft: { type: 'text' },
operator: { type: 'text', fields: { raw: { type: 'keyword' } } },
aircraft: { type: 'text', fields: { raw: { type: 'keyword' } } },
aircraft_manufacturer: { type: 'keyword' },
transponder: { type: 'keyword' },
callsign: { type: 'keyword' },
@@ -45,8 +45,8 @@ export async function createIndex(client, index) {
squawk: { type: 'keyword' },
spi: { type: 'boolean' },
position_source: { type: 'keyword' },
from: { type: 'text' },
to: { type: 'text' },
from: { type: 'text', fields: { raw: { type: 'keyword' } } },
to: { type: 'text', fields: { raw: { type: 'keyword' } } },
},
},
},