Skip to content

Commit 5f53f1a

Browse files
committed
Merge branch 'master' of github.com:medcl/elasticsearch-analysis-ik
2 parents 904a749 + 06e8a23 commit 5f53f1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)