Skip to content

Commit 6866e67

Browse files
authored
Fix ES search for Portuguese (#8802)
* Fix ES search for Portuguese * Set portuguese analyzer
1 parent bbb4c0b commit 6866e67

File tree

1 file changed

+30
-0
lines changed
  • web/src/main/webResources/WEB-INF/data/config/index

1 file changed

+30
-0
lines changed

web/src/main/webResources/WEB-INF/data/config/index/records.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,10 @@
11251125
"type": "keyword",
11261126
"copy_to": ["any.langpol", "organisationName.langpol"]
11271127
},
1128+
"langpor": {
1129+
"type": "keyword",
1130+
"copy_to": ["any.langpor", "organisationName.langpor"]
1131+
},
11281132
"link": {
11291133
"type": "keyword"
11301134
}
@@ -1320,6 +1324,17 @@
13201324
}
13211325
}
13221326
},
1327+
"langpor": {
1328+
"type": "text",
1329+
"analyzer": "portuguese",
1330+
"copy_to": ["any.langpor"],
1331+
"fields": {
1332+
"keyword": {
1333+
"type": "keyword",
1334+
"ignore_above": ${es.index.ignore_above}
1335+
}
1336+
}
1337+
},
13231338
"link": {
13241339
"type": "keyword"
13251340
}
@@ -1434,6 +1449,10 @@
14341449
"type": "keyword",
14351450
"copy_to": ["any.langpol"]
14361451
},
1452+
"langpor": {
1453+
"type": "keyword",
1454+
"copy_to": ["any.langpor"]
1455+
},
14371456
"text": {
14381457
"type": "keyword"
14391458
},
@@ -1650,6 +1669,10 @@
16501669
"langpol": {
16511670
"type": "text",
16521671
"analyzer": "${es.index.analyzer.default}"
1672+
},
1673+
"langpor": {
1674+
"type": "text",
1675+
"analyzer": "portuguese"
16531676
}
16541677
}
16551678
},
@@ -1715,6 +1738,10 @@
17151738
"type": "keyword",
17161739
"copy_to": ["any.langpol"]
17171740
},
1741+
"langpor": {
1742+
"type": "keyword",
1743+
"copy_to": ["any.langpor"]
1744+
},
17181745
"link": {
17191746
"type": "keyword"
17201747
}
@@ -2273,6 +2300,9 @@
22732300
},
22742301
"langpol": {
22752302
"type": "keyword"
2303+
},
2304+
"langpor": {
2305+
"type": "keyword"
22762306
}
22772307
}
22782308
}

0 commit comments

Comments
 (0)