Skip to content

Commit

Permalink
#93 - Make display translations searchable
Browse files Browse the repository at this point in the history
- Add the display property to both indices
- remove the translations property from ontology
  • Loading branch information
michael-82 committed Oct 18, 2024
1 parent 2e16229 commit 26f4a94
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"settings": {
"settings": {
"analysis": {
"tokenizer": {
"edge_ngram_tokenizer": {
Expand Down Expand Up @@ -81,6 +81,24 @@
},
"value_sets": {
"type": "keyword"
},
"display": {
"properties": {
"original": {
"type": "text",
"index": false
},
"de-DE": {
"type": "text",
"analyzer": "edge_ngram_analyzer_include_punctuation",
"search_analyzer": "lowercase_analyzer"
},
"en-US": {
"type": "text",
"analyzer": "edge_ngram_analyzer_include_punctuation",
"search_analyzer": "lowercase_analyzer"
}
}
}
}
}
Expand Down
33 changes: 17 additions & 16 deletions example/fdpg-ontology/elastic-additional-files/ontology_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,23 @@
"kds_module": {
"type": "keyword"
},
"name": {
"type": "text",
"analyzer": "edge_ngram_analyzer",
"search_analyzer": "lowercase_analyzer"
"display": {
"properties": {
"original": {
"type": "text",
"index": false
},
"de-DE": {
"type": "text",
"analyzer": "edge_ngram_analyzer_include_punctuation",
"search_analyzer": "lowercase_analyzer"
},
"en-US": {
"type": "text",
"analyzer": "edge_ngram_analyzer_include_punctuation",
"search_analyzer": "lowercase_analyzer"
}
}
},
"parents": {
"properties": {
Expand Down Expand Up @@ -154,18 +167,6 @@
},
"terminology": {
"type": "keyword"
},
"translations": {
"properties": {
"lang": {
"type": "text",
"index": false
},
"value": {
"type": "text",
"index": false
}
}
}
}
}
Expand Down

0 comments on commit 26f4a94

Please sign in to comment.