mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-04-20 05:09:08 +00:00
ci: make mapping test work for new mappings
This commit is contained in:
@@ -256,28 +256,11 @@ export interface ElasticsearchObject {
|
||||
};
|
||||
}
|
||||
|
||||
export interface ElasticsearchMapping {
|
||||
/**
|
||||
* The mappings of the index
|
||||
*/
|
||||
mappings: {
|
||||
[name: string]: ElasticsearchObject;
|
||||
};
|
||||
|
||||
/**
|
||||
* The settings for the index
|
||||
*/
|
||||
settings: unknown;
|
||||
|
||||
/**
|
||||
* The name of the index
|
||||
*/
|
||||
template: string;
|
||||
}
|
||||
|
||||
// TODO: docs
|
||||
export interface ElasticsearchMappings {
|
||||
[indexName: string]: ElasticsearchMapping;
|
||||
/**
|
||||
* A collection of Elasticsearch Templates
|
||||
*/
|
||||
export interface ElasticsearchTemplateCollection {
|
||||
[indexName: string]: ElasticsearchTemplate;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -291,39 +274,7 @@ export interface ElasticsearchTemplate {
|
||||
* This is a pre-defined structure you should use for your mapping
|
||||
*/
|
||||
mappings: {
|
||||
/**
|
||||
* This mapping will be used by default for everything
|
||||
*/
|
||||
_default_: {
|
||||
/**
|
||||
* Contains the original JSON document body
|
||||
*
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/5.6/mapping-source-field.html
|
||||
*/
|
||||
_source: {
|
||||
/**
|
||||
* Any fields that are excluded from the source
|
||||
*/
|
||||
excludes: string[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Whether Elasticsearch should automatically add date fields to objects
|
||||
*/
|
||||
date_detection: false;
|
||||
|
||||
/**
|
||||
* This is where all the dynamic templates should go
|
||||
*/
|
||||
dynamic_templates: ElasticsearchDynamicTemplate[];
|
||||
|
||||
/**
|
||||
* This is where all the mappings should go
|
||||
*/
|
||||
properties: {
|
||||
[name: string]: ElasticsearchObject;
|
||||
};
|
||||
};
|
||||
[typeName: string]: ElasticsearchObject;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user