default replacement char to delimiter char

This commit is contained in:
kimchy 2011-04-22 03:20:34 +03:00
parent 1f89fb26aa
commit e171596a6f
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class PathHierarchyTokenizerFactory extends AbstractTokenizerFactory {
String replacement = settings.get("replacement"); String replacement = settings.get("replacement");
if (replacement == null) { if (replacement == null) {
this.replacement = PathHierarchyTokenizer.DEFAULT_DELIMITER; this.replacement = this.delimiter;
} else if (replacement.length() > 1) { } else if (replacement.length() > 1) {
throw new ElasticSearchIllegalArgumentException("replacement can only be a one char value"); throw new ElasticSearchIllegalArgumentException("replacement can only be a one char value");
} else { } else {