Skip to content

Commit

Permalink
add ds internal id to mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Dec 21, 2024
1 parent 5a5f022 commit 519732a
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 0 deletions.
39 changes: 39 additions & 0 deletions core/src/search_stores/indices/data_sources_nodes_2.mappings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"dynamic": "strict",
"properties": {
"data_source_id": {
"type": "keyword"
},
"data_source_internal_id": {
"type": "keyword"
},
"timestamp": {
"type": "date"
},
"node_type": {
"type": "keyword"
},
"node_id": {
"type": "keyword"
},
"title": {
"type": "text",
"analyzer": "standard",
"fields": {
"edge": {
"type": "text",
"analyzer": "edge_analyzer"
}
}
},
"parents": {
"type": "keyword"
},
"parent_id": {
"type": "keyword"
},
"mime_type": {
"type": "keyword"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"number_of_shards": 1,
"number_of_replicas": 0,
"refresh_interval": "30s",
"analysis": {
"analyzer": {
"icu_analyzer": {
"type": "custom",
"tokenizer": "icu_tokenizer",
"filter": [
"icu_folding",
"lowercase",
"asciifolding",
"preserve_word_delimiter"
]
},
"edge_analyzer": {
"type": "custom",
"tokenizer": "icu_tokenizer",
"filter": ["lowercase", "edge_ngram_filter"]
}
},
"filter": {
"preserve_word_delimiter": {
"type": "word_delimiter",
"split_on_numerics": false,
"split_on_case_change": false
},
"edge_ngram_filter": {
"type": "edge_ngram",
"min_gram": 2,
"max_gram": 20
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"number_of_shards": 2,
"number_of_replicas": 1,
"refresh_interval": "30s",
"analysis": {
"analyzer": {
"icu_analyzer": {
"type": "custom",
"tokenizer": "icu_tokenizer",
"filter": [
"icu_folding",
"lowercase",
"asciifolding",
"preserve_word_delimiter"
]
},
"edge_analyzer": {
"type": "custom",
"tokenizer": "icu_tokenizer",
"filter": ["lowercase", "edge_ngram_filter"]
}
},
"filter": {
"preserve_word_delimiter": {
"type": "word_delimiter",
"split_on_numerics": false,
"split_on_case_change": false
},
"edge_ngram_filter": {
"type": "edge_ngram",
"min_gram": 2,
"max_gram": 20
}
}
}
}

0 comments on commit 519732a

Please sign in to comment.