Re: (Edge)NGramFilterFactory and highlight

2014-12-21 Thread Bjørn Hjelle
Mingchun, yes, that is better, and it works fine. Thank you! Bjørn On Sat, Dec 20, 2014 at 1:26 PM, Mingchun Zhao wrote: > Hi Bjørn, > > From solr4.4, the behavior of end offsets in EdgeNGramFilterFactory > was changed due to the following issue, > https://issues.apache.org/jira/browse/LUCENE-

Re: (Edge)NGramFilterFactory and highlight

2014-12-20 Thread Mingchun Zhao
Hi Bjørn, >From solr4.4, the behavior of end offsets in EdgeNGramFilterFactory was changed due to the following issue, https://issues.apache.org/jira/browse/LUCENE-3907 The related source code in this patch as below, == + if (version.onOrAfter(Version.LUCENE_44)) { +// Never u

(Edge)NGramFilterFactory and highlight

2014-12-19 Thread Bjørn Hjelle
Hi, based on this example: http://www.cominvent.com/2012/01/25/super-flexible-autocomplete-with-solr/ I have earlier successfully implemented highlight of terms in (Edge)NGram-analyzed fields. In a new project, however, with Solr 4.10.2 it does not work. In the Solr admin analysis page I see the