-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eitems: mappings: Add accent striping filters to document title
- Loading branch information
1 parent
a0dca8c
commit 766fd9a
Showing
6 changed files
with
661 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
179 changes: 179 additions & 0 deletions
179
invenio_app_ils/eitems/mappings/os-v1/eitems/eitem-v3.0.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
{ | ||
"settings": { | ||
"analysis": { | ||
"normalizer": { | ||
"custom_normalizer": { | ||
"type": "custom", | ||
"char_filter": ["strip_special_chars"], | ||
"filter": ["lowercase", "asciifolding"] | ||
} | ||
}, | ||
"analyzer": { | ||
"custom_analyzer": { | ||
"tokenizer": "standard", | ||
"type": "custom", | ||
"char_filter": ["strip_special_chars"], | ||
"filter": ["lowercase", "asciifolding"] | ||
} | ||
}, | ||
"filter": { | ||
"asciifolding": { | ||
"type": "asciifolding" | ||
} | ||
}, | ||
"char_filter": { | ||
"strip_special_chars": { | ||
"type": "pattern_replace", | ||
"pattern": "[\\p{Punct}\\p{S}]", | ||
"replacement": "" | ||
} | ||
} | ||
} | ||
}, | ||
"mappings": { | ||
"date_detection": false, | ||
"numeric_detection": false, | ||
"properties": { | ||
"$schema": { | ||
"type": "keyword" | ||
}, | ||
"_created": { | ||
"type": "date" | ||
}, | ||
"_updated": { | ||
"type": "date" | ||
}, | ||
"bucket_id": { | ||
"type": "keyword" | ||
}, | ||
"created_by": { | ||
"properties": { | ||
"type": { | ||
"type": "keyword" | ||
}, | ||
"value": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"description": { | ||
"type": "text" | ||
}, | ||
"document": { | ||
"properties": { | ||
"authors": { | ||
"type": "text" | ||
}, | ||
"cover_metadata": { | ||
"properties": {}, | ||
"type": "object" | ||
}, | ||
"edition": { | ||
"type": "text" | ||
}, | ||
"pid": { | ||
"type": "keyword" | ||
}, | ||
"publication_year": { | ||
"type": "keyword" | ||
}, | ||
"title": { | ||
"type": "text", | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
}, | ||
"normalized_keyword": { | ||
"type": "keyword", | ||
"normalizer": "custom_normalizer" | ||
} | ||
}, | ||
"analyzer": "custom_analyzer", | ||
"search_analyzer": "custom_analyzer" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"document_pid": { | ||
"type": "keyword" | ||
}, | ||
"eitem_type": { | ||
"type": "keyword" | ||
}, | ||
"files": { | ||
"properties": { | ||
"bucket": { | ||
"type": "keyword" | ||
}, | ||
"checksum": { | ||
"type": "keyword" | ||
}, | ||
"file_id": { | ||
"type": "keyword" | ||
}, | ||
"key": { | ||
"type": "keyword" | ||
}, | ||
"size": { | ||
"type": "keyword" | ||
}, | ||
"version_id": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"identifiers": { | ||
"properties": { | ||
"material": { | ||
"type": "keyword" | ||
}, | ||
"scheme": { | ||
"type": "keyword" | ||
}, | ||
"value": { | ||
"type": "keyword", | ||
"fields": { | ||
"text": { | ||
"type": "text" | ||
} | ||
} | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"internal_notes": { | ||
"type": "text" | ||
}, | ||
"open_access": { | ||
"type": "boolean" | ||
}, | ||
"pid": { | ||
"type": "keyword" | ||
}, | ||
"source": { | ||
"type": "keyword", | ||
"fields": { | ||
"text": { | ||
"type": "text" | ||
} | ||
} | ||
}, | ||
"urls": { | ||
"properties": { | ||
"description": { | ||
"type": "text" | ||
}, | ||
"value": { | ||
"type": "keyword" | ||
}, | ||
"login_required": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} |
179 changes: 179 additions & 0 deletions
179
invenio_app_ils/eitems/mappings/os-v2/eitems/eitem-v3.0.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
{ | ||
"settings": { | ||
"analysis": { | ||
"normalizer": { | ||
"custom_normalizer": { | ||
"type": "custom", | ||
"char_filter": ["strip_special_chars"], | ||
"filter": ["lowercase", "asciifolding"] | ||
} | ||
}, | ||
"analyzer": { | ||
"custom_analyzer": { | ||
"tokenizer": "standard", | ||
"type": "custom", | ||
"char_filter": ["strip_special_chars"], | ||
"filter": ["lowercase", "asciifolding"] | ||
} | ||
}, | ||
"filter": { | ||
"asciifolding": { | ||
"type": "asciifolding" | ||
} | ||
}, | ||
"char_filter": { | ||
"strip_special_chars": { | ||
"type": "pattern_replace", | ||
"pattern": "[\\p{Punct}\\p{S}]", | ||
"replacement": "" | ||
} | ||
} | ||
} | ||
}, | ||
"mappings": { | ||
"date_detection": false, | ||
"numeric_detection": false, | ||
"properties": { | ||
"$schema": { | ||
"type": "keyword" | ||
}, | ||
"_created": { | ||
"type": "date" | ||
}, | ||
"_updated": { | ||
"type": "date" | ||
}, | ||
"bucket_id": { | ||
"type": "keyword" | ||
}, | ||
"created_by": { | ||
"properties": { | ||
"type": { | ||
"type": "keyword" | ||
}, | ||
"value": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"description": { | ||
"type": "text" | ||
}, | ||
"document": { | ||
"properties": { | ||
"authors": { | ||
"type": "text" | ||
}, | ||
"cover_metadata": { | ||
"properties": {}, | ||
"type": "object" | ||
}, | ||
"edition": { | ||
"type": "text" | ||
}, | ||
"pid": { | ||
"type": "keyword" | ||
}, | ||
"publication_year": { | ||
"type": "keyword" | ||
}, | ||
"title": { | ||
"type": "text", | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
}, | ||
"normalized_keyword": { | ||
"type": "keyword", | ||
"normalizer": "custom_normalizer" | ||
} | ||
}, | ||
"analyzer": "custom_analyzer", | ||
"search_analyzer": "custom_analyzer" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"document_pid": { | ||
"type": "keyword" | ||
}, | ||
"eitem_type": { | ||
"type": "keyword" | ||
}, | ||
"files": { | ||
"properties": { | ||
"bucket": { | ||
"type": "keyword" | ||
}, | ||
"checksum": { | ||
"type": "keyword" | ||
}, | ||
"file_id": { | ||
"type": "keyword" | ||
}, | ||
"key": { | ||
"type": "keyword" | ||
}, | ||
"size": { | ||
"type": "keyword" | ||
}, | ||
"version_id": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"identifiers": { | ||
"properties": { | ||
"material": { | ||
"type": "keyword" | ||
}, | ||
"scheme": { | ||
"type": "keyword" | ||
}, | ||
"value": { | ||
"type": "keyword", | ||
"fields": { | ||
"text": { | ||
"type": "text" | ||
} | ||
} | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"internal_notes": { | ||
"type": "text" | ||
}, | ||
"open_access": { | ||
"type": "boolean" | ||
}, | ||
"pid": { | ||
"type": "keyword" | ||
}, | ||
"source": { | ||
"type": "keyword", | ||
"fields": { | ||
"text": { | ||
"type": "text" | ||
} | ||
} | ||
}, | ||
"urls": { | ||
"properties": { | ||
"description": { | ||
"type": "text" | ||
}, | ||
"value": { | ||
"type": "keyword" | ||
}, | ||
"login_required": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.