File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
src/main/java/org/wltea/analyzer/core Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -268,13 +268,14 @@ void outputToResult(){
268
268
while (l != null ){
269
269
this .results .add (l );
270
270
//字典中无单字,但是词元冲突了,切分出相交词元的前一个词元中的单字
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
+ // }
278
279
279
280
//将index移至lexeme后
280
281
index = l .getBegin () + l .getLength ();
You can’t perform that action at this time.
0 commit comments