fix: read type tags correctly after the first time

This commit is contained in:
Wieland Schöbl
2019-08-20 17:48:37 +02:00
parent 36bf17e323
commit 77e49146c0
4 changed files with 88 additions and 62 deletions

View File

@@ -53,5 +53,6 @@ export const filterableTagName = 'filterable';
export const filterableMap: ElasticsearchFilterableMap = {
date: ElasticsearchDataType.keyword,
keyword: ElasticsearchDataType.keyword,
text: ElasticsearchDataType.keyword,
};

View File

@@ -44,7 +44,10 @@ export const premaps: ElasticsearchPremap = {
dynamic: 'strict',
properties: {
bbox: {type: ElasticsearchDataType.float},
coordinates: {type: ElasticsearchDataType.geo_point}, // TODO: filterable
coordinates: {
fields: {raw: {type: ElasticsearchDataType.keyword}},
type: ElasticsearchDataType.geo_point,
},
crs: {
dynamic: 'strict',
properties: {
@@ -62,7 +65,10 @@ export const premaps: ElasticsearchPremap = {
dynamic: 'strict',
properties: {
bbox: {type: ElasticsearchDataType.float},
coordinates: {type: ElasticsearchDataType.geo_point}, // TODO: filterable
coordinates: {
fields: {raw: {type: ElasticsearchDataType.keyword}},
type: ElasticsearchDataType.geo_point,
},
crs: {
dynamic: 'strict',
properties: {