Commit 7fe6597b authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add elastic mappings

parent 99e46632
{
"index_patterns": [
"documents*"
],
"settings": {
"number_of_replicas": 1,
"number_of_shards": 3
},
"mappings": {
"date_detection": false,
"dynamic_templates": [
{
"relation_as_keyword": {
"path_match": "*.relation",
"mapping": {
"properties": {
"de": {
"type": "keyword"
},
"fr": {
"type": "keyword"
},
"it": {
"type": "keyword"
},
"un": {
"type": "keyword"
}
}
}
}
},
{
"facet_as_keyword": {
"path_match": "*.facet",
"mapping": {
"type": "keyword"
}
}
},
{
"sort_as_keyword": {
"path_match": "*.sort",
"mapping": {
"type": "keyword"
}
}
},
{
"filter_as_keyword": {
"path_match": "*.filter",
"mapping": {
"type": "keyword"
}
}
},
{
"german_fields": {
"path_match": "*.de",
"mapping": {
"type": "text",
"fields": {
"filter": {
"type": "keyword"
}
}
}
}
},
{
"french_fields": {
"path_match": "*.fr",
"mapping": {
"type": "text",
"fields": {
"filter": {
"type": "keyword"
}
}
}
}
},
{
"italian_fields": {
"path_match": "*.it",
"mapping": {
"type": "text",
"fields": {
"filter": {
"type": "keyword"
}
}
}
}
},
{
"unknown_language_fields": {
"path_match": "*.un",
"mapping": {
"type": "text",
"fields": {
"filter": {
"type": "keyword"
}
}
}
}
},
{
"strings_as_text": {
"match_mapping_type": "string",
"mapping": {
"type": "text"
}
}
}
],
"properties": {
"id": {
"type": "keyword",
"index": false
},
"sourceID": {
"type": "keyword"
},
"type": {
"type": "keyword"
},
"callNumber": {
"type": "keyword"
},
"usageDigitalGroup": {
"type": "keyword"
},
"usageDigital": {
"type": "keyword"
},
"usagePhysical": {
"type": "keyword",
"index": false
},
"access": {
"type": "keyword"
},
"accessDigital": {
"type": "keyword",
"index": false
},
"accessPhysical": {
"type": "keyword",
"index": false
},
"locator": {
"type": "keyword",
"index": false
},
"durationPhysical": {
"type": "keyword",
"index": false
},
"durationDigital": {
"type": "keyword",
"index": false
},
"personsFacet": {
"type": "keyword"
},
"placeFacet": {
"type": "keyword"
},
"published": {
"type": "boolean"
},
"suggest": {
"properties": {
"title": {
"type": "completion"
},
"seriesTitle": {
"type": "completion"
},
"broadcastTitle": {
"type": "completion"
},
"keywords": {
"type": "completion"
}
}
}
}
}
}
{
"index_patterns": [
"institutions*"
],
"settings": {
"number_of_replicas": 1,
"number_of_shards": 3
},
"mappings": {
"date_detection": false,
"properties": {
"canton": {
"properties": {
"de": {
"type": "keyword"
},
"fr": {
"type": "keyword"
},
"it": {
"type": "keyword"
},
"un": {
"type": "keyword"
}
}
},
"city": {
"properties": {
"de": {
"type": "text"
},
"fr": {
"type": "text"
},
"it": {
"type": "text"
},
"un": {
"type": "text"
}
}
},
"description": {
"properties": {
"de": {
"type": "text"
},
"fr": {
"type": "text"
},
"it": {
"type": "text"
},
"un": {
"type": "text"
}
}
},
"documentType": {
"properties": {
"de": {
"type": "keyword"
},
"fr": {
"type": "keyword"
},
"it": {
"type": "keyword"
},
"un": {
"type": "keyword"
}
}
},
"id": {
"type": "keyword"
},
"keyVisualLink": {
"type": "keyword"
},
"address": {
"type": "text"
},
"name": {
"properties": {
"de": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fr": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"it": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"postalCodes": {
"type": "text"
},
"numberOfDocuments": {
"type": "long"
},
"numberOfRecordSets": {
"type": "long"
},
"published": {
"type": "boolean"
},
"type": {
"properties": {
"de": {
"type": "keyword"
},
"fr": {
"type": "keyword"
},
"it": {
"type": "keyword"
},
"un": {
"type": "keyword"
}
}
}
}
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment