chenlb / mmseg4j-solr

mmseg4j for lucene or solr analyzer
Apache License 2.0
398 stars 141 forks source link

lucene4.7和mmseg4j整合的时候高亮报错 #10

Open leomx opened 9 years ago

leomx commented 9 years ago
org.apache.lucene.search.highlight.InvalidTokenOffsetsException: Token ikanalyz exceeds length of provided text sized 79
    at org.apache.lucene.search.highlight.Highlighter.getBestTextFragments(Highlighter.java:225)
    at org.apache.lucene.search.highlight.Highlighter.getBestFragments(Highlighter.java:156)
    at org.apache.lucene.search.highlight.Highlighter.getBestFragment(Highlighter.java:102)
    at com.ifweb.web.search.SearchLogic.highlightFormat(SearchLogic.java:265)
    at com.ifweb.web.search.SearchLogic.addHits2List(SearchLogic.java:186)
    at com.ifweb.web.search.SearchLogic.getResult(SearchLogic.java:67)
    at com.ifweb.web.search.SearchLogic.main(SearchLogic.java:233)
Token ikanalyz exceeds length of provided text sized 79

求解答

chenlb commented 9 years ago

能提供一下索引前的内容和搜索的内容吗?