File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/org/wltea/analyzer/core Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ curl -XPOST http://localhost:9200/index/_mapping -H 'Content-Type:application/js
6363 "content": {
6464 "type": "text",
6565 "analyzer": "ik_max_word",
66- "search_analyzer": "ik_max_word "
66+ "search_analyzer": "ik_smart "
6767 }
6868 }
6969
Original file line number Diff line number Diff line change @@ -268,13 +268,13 @@ void outputToResult(){
268268 while (l != null ){
269269 this .results .add (l );
270270 //字典中无单字,但是词元冲突了,切分出相交词元的前一个词元中的单字
271- int innerIndex = index + 1 ;
271+ /* int innerIndex = index + 1;
272272 for (; innerIndex < index + l.getLength(); innerIndex++) {
273273 Lexeme innerL = path.peekFirst();
274274 if (innerL != null && innerIndex == innerL.getBegin()) {
275275 this.outputSingleCJK(innerIndex - 1);
276276 }
277- }
277+ }*/
278278
279279 //将index移至lexeme后
280280 index = l .getBegin () + l .getLength ();
You can’t perform that action at this time.
0 commit comments