feat: add raw version of text fields
This commit is contained in:
@@ -26,8 +26,8 @@ export async function createIndex(client, index) {
|
|||||||
mappings: {
|
mappings: {
|
||||||
[doctype]: {
|
[doctype]: {
|
||||||
properties: {
|
properties: {
|
||||||
operator: { type: 'keyword' },
|
operator: { type: 'text', fields: { raw: { type: 'keyword' } } },
|
||||||
aircraft: { type: 'text' },
|
aircraft: { type: 'text', fields: { raw: { type: 'keyword' } } },
|
||||||
aircraft_manufacturer: { type: 'keyword' },
|
aircraft_manufacturer: { type: 'keyword' },
|
||||||
transponder: { type: 'keyword' },
|
transponder: { type: 'keyword' },
|
||||||
callsign: { type: 'keyword' },
|
callsign: { type: 'keyword' },
|
||||||
@@ -45,8 +45,8 @@ export async function createIndex(client, index) {
|
|||||||
squawk: { type: 'keyword' },
|
squawk: { type: 'keyword' },
|
||||||
spi: { type: 'boolean' },
|
spi: { type: 'boolean' },
|
||||||
position_source: { type: 'keyword' },
|
position_source: { type: 'keyword' },
|
||||||
from: { type: 'text' },
|
from: { type: 'text', fields: { raw: { type: 'keyword' } } },
|
||||||
to: { type: 'text' },
|
to: { type: 'text', fields: { raw: { type: 'keyword' } } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user