Skip to content

Commit

Permalink
Merge pull request #2362 from atlanhq/truncate_analyzer
Browse files Browse the repository at this point in the history
[stag] PLT-1886 Add truncate analyzer for vertex_index
  • Loading branch information
nikhilbonte21 authored Sep 14, 2023
2 parents ca3a5f2 + 7ab815c commit fbcf24a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions addons/elasticsearch/es-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
"graph_synonyms", "lowercase"
],
"tokenizer": "atlan_tokenizer"
},
"truncate_analyzer": {
"char_filter": [
"truncate_filter"
],
"tokenizer": "standard"
}
},
"normalizer": {
Expand Down Expand Up @@ -103,6 +109,11 @@
"type":"pattern_replace",
"pattern":"\\d+",
"replacement":" $0"
},
"truncate_filter": {
"pattern": "(^.{0,100000}).*$",
"type": "pattern_replace",
"replacement": "$1 "
}
}
}
Expand Down

0 comments on commit fbcf24a

Please sign in to comment.