You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by neosky <ne...@yahoo.com> on 2012/03/27 06:06:19 UTC

Why my highlights are wrong(one character offset)?

all of my highlights has one character mistake in the offset,some fragments
from my response. Thanks!

<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">259</int>
<lst name="params">
<str name="explainOther"/>
<str name="indent">on</str>
<str name="hl.fl">sequence</str>
<str name="wt"/>
<str name="hl">true</str>
<str name="rows">10</str>
<str name="version">2.2</str>
<str name="fl">*,score</str>
<str name="hl.useFastVectorHighlighter">true</str>
<str name="start">0</str>
<str name="q">sequence:NGNFN</str>
<str name="qt"/>
<str name="fq"/>
</lst>
</lst>
<lst name="highlighting">
<lst name=" B9SUS0 ">
<arr name="sequence">
<str>TSQSEL<em>SNGNF</em>NRRPKIELSNFDGNHPKTWIRKC</str>
</arr>
</lst>
<lst name=" Q01GW2 ">
<arr name="sequence">
<str>GENTRE<em>RNGNF</em>NSLTRERSFAELENHPPKVRRNGSEG</str>
</arr>
</lst>
<lst name=" C5L0V0 ">
<arr name="sequence">
<str>EGRYPC<em>NNGNF</em>NLTTGRCVCEKNYVHLIYEDRI</str>
</arr>
</lst>
<lst name=" C4JX93 ">
<arr name="sequence">
<str>YAEENY<em>INGNF</em>NEEPY</str>
</arr>
</lst>
<lst name=" D7CK80 ">
<arr name="sequence">
<str>KEVADD<em>CNGNF</em>NQPTGVRI</str>
</arr>
</lst>
</lst>
</response>

--
View this message in context: http://lucene.472066.n3.nabble.com/Why-my-highlights-are-wrong-one-character-offset-tp3860283p3860283.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Why my highlights are wrong(one character offset)?

Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
How does your sequence field look like in schema.xml, fieldType and field?
And what version are you using?

koji
-- 
Query Log Visualizer for Apache Solr
http://soleami.com/

(12/03/27 13:06), neosky wrote:
> all of my highlights has one character mistake in the offset,some fragments
> from my response. Thanks!
>
> <response>
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">259</int>
> <lst name="params">
> <str name="explainOther"/>
> <str name="indent">on</str>
> <str name="hl.fl">sequence</str>
> <str name="wt"/>
> <str name="hl">true</str>
> <str name="rows">10</str>
> <str name="version">2.2</str>
> <str name="fl">*,score</str>
> <str name="hl.useFastVectorHighlighter">true</str>
> <str name="start">0</str>
> <str name="q">sequence:NGNFN</str>
> <str name="qt"/>
> <str name="fq"/>
> </lst>
> </lst>
> <lst name="highlighting">
> <lst name=" B9SUS0 ">
> <arr name="sequence">
> <str>TSQSEL<em>SNGNF</em>NRRPKIELSNFDGNHPKTWIRKC</str>
> </arr>
> </lst>
> <lst name=" Q01GW2 ">
> <arr name="sequence">
> <str>GENTRE<em>RNGNF</em>NSLTRERSFAELENHPPKVRRNGSEG</str>
> </arr>
> </lst>
> <lst name=" C5L0V0 ">
> <arr name="sequence">
> <str>EGRYPC<em>NNGNF</em>NLTTGRCVCEKNYVHLIYEDRI</str>
> </arr>
> </lst>
> <lst name=" C4JX93 ">
> <arr name="sequence">
> <str>YAEENY<em>INGNF</em>NEEPY</str>
> </arr>
> </lst>
> <lst name=" D7CK80 ">
> <arr name="sequence">
> <str>KEVADD<em>CNGNF</em>NQPTGVRI</str>
> </arr>
> </lst>
> </lst>
> </response>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Why-my-highlights-are-wrong-one-character-offset-tp3860283p3860283.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>