mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Add flag Pattern.UNICODE_CHARACTER_CLASS to pattern compilation to recognize unicode characters
This commit is contained in:
@@ -845,7 +845,7 @@ public class ItemIndexFactoryImpl extends DSpaceObjectIndexFactoryImpl<Indexable
|
|||||||
private void saveFacetPrefixParts(SolrInputDocument doc, DiscoverySearchFilter searchFilter, String value,
|
private void saveFacetPrefixParts(SolrInputDocument doc, DiscoverySearchFilter searchFilter, String value,
|
||||||
String separator, String authority, String preferedLabel) {
|
String separator, String authority, String preferedLabel) {
|
||||||
value = StringUtils.normalizeSpace(value);
|
value = StringUtils.normalizeSpace(value);
|
||||||
Pattern pattern = Pattern.compile("\\b\\w+\\b", Pattern.CASE_INSENSITIVE);
|
Pattern pattern = Pattern.compile("\\b\\w+\\b", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CHARACTER_CLASS);
|
||||||
Matcher matcher = pattern.matcher(value);
|
Matcher matcher = pattern.matcher(value);
|
||||||
while (matcher.find()) {
|
while (matcher.find()) {
|
||||||
int index = matcher.start();
|
int index = matcher.start();
|
||||||
|
Reference in New Issue
Block a user