From d23f0887e6a7936cbda0853fb30e6b1978a70840 Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Wed, 3 Jul 2013 19:32:41 +0000 Subject: [PATCH] LUCENE-5089: updated tag split character to be either + or |. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1499533 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/analysis/morfologik/MorfologikFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/analysis/morfologik/src/java/org/apache/lucene/analysis/morfologik/MorfologikFilter.java b/lucene/analysis/morfologik/src/java/org/apache/lucene/analysis/morfologik/MorfologikFilter.java index 1602be73301..049dad1570e 100644 --- a/lucene/analysis/morfologik/src/java/org/apache/lucene/analysis/morfologik/MorfologikFilter.java +++ b/lucene/analysis/morfologik/src/java/org/apache/lucene/analysis/morfologik/MorfologikFilter.java @@ -95,7 +95,7 @@ public class MorfologikFilter extends TokenFilter { termAtt.setEmpty().append(lemma.getStem()); CharSequence tag = lemma.getTag(); if (tag != null) { - String[] tags = tag.toString().split("\\+"); + String[] tags = tag.toString().split("\\+|\\|"); for (int i = 0; i < tags.length; i++) { if (tagsList.size() <= i) { tagsList.add(new StringBuilder());