File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed
java/tla/backend/es/query
resources/elasticsearch/settings/indices Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -146,14 +146,17 @@ public String maskRegExTranscription(String transcription) {
146146 transcription = transcription .replace ("⸮" , "" );
147147 // "?", "[" , and "]" are part of allowed RegEx syntax
148148
149- // BTS wildcards (any sign)
149+ // leagacy TLA wildcards
150150 transcription = transcription .replace ("§" , "." ); // "§" in legacyTLA
151- transcription = transcription .replace ("*" , "." ); // "*" new in newTLA
151+
152+ // Usual wildcards
153+ transcription = transcription .replace ("_" , "." ); // any sigle sign
154+ transcription = transcription .replace ("*" , ".*" ); // zero or more signs
152155
153156 // treatment of right end
154157 if (transcription .endsWith ("$" )) { // "$": wirkliches String-Ende
155158 transcription = transcription .replace ("$" , "" ); // remove "$" (all, just to be sure)
156- } else {
159+ } else if (! transcription . endsWith ( ".*" )) { // redundant if already ends with ".*"
157160 transcription = transcription + ".*" ; // right: any signs may follow
158161 }
159162
Original file line number Diff line number Diff line change 6363 "transcription_suffix_filter" : {
6464 "type" : " mapping" ,
6565 "mappings" : [
66- " .t.pl => .wt" ,
67- " .t:pl => .wt" ,
68- " .tpl => .wt" ,
69- " t.du => .tj" ,
70- " t:du => .tj" ,
71- " .tdu => .tj" ,
72- " ,t,pl => ,wt" ,
73- " ,tpl => ,wt" ,
74- " t,du => ,tj" ,
75- " ,tdu => ,tj" ,
76- " du => wj" ,
77- " pl => w" ,
7866 " , => ."
7967 ]
8068 },
You can’t perform that action at this time.
0 commit comments