Yes, I understand you can't highlight a documented within a document.
However, with MLT you a using the interesting terms from the source
document(s) to find similar results. An obvious solution would be
highlighting the interesting terms that matched and thus made the
result similar.
Thanks,
Matt Weber
On Apr 29, 2009, at 9:27 PM, Walter Underwood wrote:
Think about this for a moment. When you use MoreLikeThis, the query
is a document. How do you highlight a document in another document?
wunder
On 4/29/09 9:21 PM, "Matt Weber" <m...@mattweber.org> wrote:
Any luck on this? I am experiencing the same issue. Highlighting
works fine on all other request handlers, but breaks when I use the
MoreLikeThisHandler.
Thanks,
Matt Weber
On Apr 28, 2009, at 5:29 AM, Eric Sabourin wrote:
Yes... at least I think so. the highlighting works correctly for me
on
another request handler... see below the request handler for my
morelikethishandler query.
Thanks for your help... Eric
<requestHandler name="/mlt" class="solr.MoreLikeThisHandler">
<lst name="defaults">
<str name="fl">
score,id,timestamp,type,textualId,subject,url,server
</str>
<str name="echoParams">explicit</str>
<str name="mlt.match.include">true</str>
<str name="mlt.interestingTerms">list</str>
<str
name
=
"mlt
.fl
">subject,requirements,productName,justification,operation_exact</
str>
<int name="mlt.minwl">2</int>
<int name="mlt.mintf">1</int>
<int name="mlt.mindf">2</int>
<str name="hl">true</str>
<str name="hl.snippets">1</str>
<!-- for subject and textualID fields, we want no fragmenting,
just
highlighting -->
<str name="f.textualId.hl.fragsize">0</str>
<str name="f.subject.hl.fragsize">0</str>
<str name="f.requirements.hl.fragmenter">regex</str> <!-- defined
below
-->
<str name="f.justification.hl.fragmenter">regex</str>
</lst>
</requestHandler>
On Mon, Apr 27, 2009 at 11:30 PM, Otis Gospodnetic <
otis_gospodne...@yahoo.com> wrote:
Eric,
Have you tried using MLT with parameters described on
http://wiki.apache.org/solr/HighlightingParameters ?
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
----- Original Message ----
From: Eric Sabourin <eric.sabourin2...@gmail.com>
To: solr-user@lucene.apache.org
Sent: Monday, April 27, 2009 10:31:38 AM
Subject: Term highlighting with MoreLikeThisHandler?
I submit a query to the MoreLikeThisHandler to find documents
similar to
a
specified document. This works and I've configured my request
handler to
also return the interesting terms.
Is it possible to have MLT return to me highlight snippets in the
similar
documents it returns? I mean generate hl snippets of the
interesting
terms?
If so how?
Thanks... Eric
--
Eric
Sent from Halifax, NS, Canada