1 Commits

Author SHA1 Message Date
2edf100fca feat: add raw version of text fields 2018-11-02 16:46:31 -07:00

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' } } },
},
},
},