Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
memoriav
Memobase 2020
utilities
Import Process CLI
Commits
7fe6597b
Commit
7fe6597b
authored
Nov 13, 2020
by
Jonas Waeber
Browse files
Add elastic mappings
parent
99e46632
Changes
2
Hide whitespace changes
Inline
Side-by-side
elastic-search-mappings/documents.template.json
0 → 100644
View file @
7fe6597b
{
"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"
}
}
}
}
}
}
elastic-search-mappings/institutions.template.json
0 → 100644
View file @
7fe6597b
{
"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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment