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 "Burton-West, Tom" <tb...@umich.edu> on 2011/06/08 21:24:15 UTC

Does MultiTerm highlighting work with the fastVectorHighlighter?

We are trying to implement highlighting for wildcard (MultiTerm) queries.  This seems to work find with the regular highlighter but when we try to use the fastVectorHighlighter we don't see any results in the  highlighting section of the response.  Appended below are the parameters we are using.

Tom Burton-West

query
<str name="q">ocr:tink*</str>
highlighting params:

<str name="hl.highlightMultiTerm">true</str>
<str name="hl.fragsize">200</str>
<str name="hl.useFastVectorHighlighter">true</str>
<str name="hl.snippets">200</str>
<str name="hl.fragmentsBuilder">colored</str>
<str name="hl.fragListBuilder">simple</str>
<str name="hl.fl">ocr</str>
<str name="hl.usePhraseHighlighter">true</str>
<str name="hl">true</str>


RE: Does MultiTerm highlighting work with the fastVectorHighlighter?

Posted by "Burton-West, Tom" <tb...@umich.edu>.
Hi Erick,

Thanks for asking, yes we have termVectors=true set:

<fieldType name="FullText" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false" stored="true" termVectors="true" termPositions="true" termOffsets="true">

I guess I should also mention that highlighting works fine using the fastVectorHighLighter as long as we don't do a MultiTerm query.   For example see the query and results appended below (using the same hl parameters listed in the previous email)


Tom
--------------------------------------------------------
<str name="q">ocr:tinkham</str>

<lst name="highlighting">
−
<lst name="mdp.39015015394847_24">
−
<arr name="ocr">
−
<str>
 John {lt:}b style="background:#ffff00"{gt:}Tinkham{lt:}/b{gt:}, who
married Miss Mallie Kingsbury; Mr. William Ash-
ley, and Mr. Leavitt, who, I believe, built the big
stone house, now left high and dry by itself, on
the top of Lyon street hill. As 
</str>
</arr>
</lst>
</lst>

-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com] 
Sent: Wednesday, June 08, 2011 4:56 PM
To: solr-user@lucene.apache.org
Subject: Re: Does MultiTerm highlighting work with the fastVectorHighlighter?

Just to check, does the field have termVectors="true" set?
I think it's required for FVH to work.
Best
Erick


Re: Does MultiTerm highlighting work with the fastVectorHighlighter?

Posted by Erick Erickson <er...@gmail.com>.
Just to check, does the field have termVectors="true" set?
I think it's required for FVH to work.
Best
Erick

On Wed, Jun 8, 2011 at 3:24 PM, Burton-West, Tom <tb...@umich.edu> wrote:
> We are trying to implement highlighting for wildcard (MultiTerm) queries.  This seems to work find with the regular highlighter but when we try to use the fastVectorHighlighter we don't see any results in the  highlighting section of the response.  Appended below are the parameters we are using.
>
> Tom Burton-West
>
> query
> <str name="q">ocr:tink*</str>
> highlighting params:
>
> <str name="hl.highlightMultiTerm">true</str>
> <str name="hl.fragsize">200</str>
> <str name="hl.useFastVectorHighlighter">true</str>
> <str name="hl.snippets">200</str>
> <str name="hl.fragmentsBuilder">colored</str>
> <str name="hl.fragListBuilder">simple</str>
> <str name="hl.fl">ocr</str>
> <str name="hl.usePhraseHighlighter">true</str>
> <str name="hl">true</str>
>
>

Re: Does MultiTerm highlighting work with the fastVectorHighlighter?

Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
(11/06/10 0:14), Burton-West, Tom wrote:
> Hi Koji,
>
>
> Thank you for your reply.
>
>>> It is the feature of FVH. FVH supports TermQuery, PhraseQuery, BooleanQuery and DisjunctionMaxQuery
>>> and Query constructed by those queries.
>
> Sorry, I'm not sure I understand.  Are you saying that FVH supports MultiTerm highlighting?

Tom,

I'm sorry but FVH doesn't cover MultiTermQuery.

koji
-- 
http://www.rondhuit.com/en/

RE: Does MultiTerm highlighting work with the fastVectorHighlighter?

Posted by "Burton-West, Tom" <tb...@umich.edu>.
Hi Koji,


Thank you for your reply.

>> It is the feature of FVH. FVH supports TermQuery, PhraseQuery, BooleanQuery and DisjunctionMaxQuery
>> and Query constructed by those queries.

Sorry, I'm not sure I understand.  Are you saying that FVH supports MultiTerm highlighting?  

Tom


Re: Does MultiTerm highlighting work with the fastVectorHighlighter?

Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
(11/06/09 4:24), Burton-West, Tom wrote:
> We are trying to implement highlighting for wildcard (MultiTerm) queries.  This seems to work find with the regular highlighter but when we try to use the fastVectorHighlighter we don't see any results in the  highlighting section of the response.  Appended below are the parameters we are using.

It is the feature of FVH. FVH supports TermQuery, PhraseQuery, BooleanQuery and DisjunctionMaxQuery
and Query constructed by those queries.

koji
-- 
http://www.rondhuit.com/en/