Skip to content

Commit ee19f22

Browse files
1 parent 125ac3c commit ee19f22

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/main/java/org/wltea/analyzer/core/AnalyzeContext.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,14 @@ void outputToResult(){
268268
while(l != null){
269269
this.results.add(l);
270270
//字典中无单字,但是词元冲突了,切分出相交词元的前一个词元中的单字
271-
int innerIndex = index + 1;
272-
for (; innerIndex < index + l.getLength(); innerIndex++) {
273-
Lexeme innerL = path.peekFirst();
274-
if (innerL != null && innerIndex == innerL.getBegin()) {
275-
this.outputSingleCJK(innerIndex - 1);
276-
}
277-
}
271+
//edit by zd, issue: https://github.com/medcl/elasticsearch-analysis-ik/issues/662
272+
// int innerIndex = index + 1;
273+
// for (; innerIndex < index + l.getLength(); innerIndex++) {
274+
// Lexeme innerL = path.peekFirst();
275+
// if (innerL != null && innerIndex == innerL.getBegin()) {
276+
// this.outputSingleCJK(innerIndex - 1);
277+
// }
278+
// }
278279

279280
//将index移至lexeme后
280281
index = l.getBegin() + l.getLength();

0 commit comments

Comments
 (0)