lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Why my highlights are wrong(one character offset)?
Date Tue, 27 Mar 2012 20:27:07 GMT

Can you reproduce the problem with latest trunk? 


> Does anyone know it is a bug or not?
> I use Ngram in my index.
> 
> <fieldType name="text_general_rev"
> class="solr.TextField"
> positionIncrementGap="100">
> <analyzer type="index">
> <tokenizer class="solr.NGramTokenizerFactory"
> minGramSize="5"
> maxGramSize="5"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> </analyzer>
> <analyzer type="query">
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> </analyzer>
> </fieldType>
> <fieldType name="text_general_2NGram"
> class="solr.TextField"
> positionIncrementGap="100">
> <analyzer type="index">
> <tokenizer class="solr.NGramTokenizerFactory"
> minGramSize="2"
> maxGramSize="2"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> </analyzer>
> <analyzer type="query">
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> </analyzer>
> </fieldType>
> 
> ...
> 
> <field name="sequence" type="text_general_rev"
> indexed="true" stored="true"
> termVectors="true" termPositions="true"
> termOffsets="true"/>
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Why-my-highlights-are-wrong-one-character-offset-tp3860286p3862326.html
> Sent from the Solr - User mailing list archive at
> Nabble.com.
> 

Mime
View raw message