Skip to content

Commit

Permalink
Merge pull request #10 from elastic-martin/master
Browse files Browse the repository at this point in the history
Update DecompoundTokenFilter.java
  • Loading branch information
jprante committed Feb 11, 2015
2 parents ba90cab + cfd591f commit 379f017
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ protected void decompound() {
int start = offsetAtt.startOffset();
CharSequence term = new String(termAtt.buffer(), 0, termAtt.length());
for (String s : decomp.decompound(term.toString())) {
start = term.toString().indexOf(s, start) + 1;
int len = s.length();
tokens.add(new DecompoundToken(s, start, len));
start += len;
Expand Down

0 comments on commit 379f017

Please sign in to comment.