lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: x most similar documents
Date Sun, 10 Jun 2012 17:38:09 GMT
Oops, I said "MLT will use the first search result from the original query", 
but that is for the MLT handler. For the MLT component you get a separate 
set of documents for each document in the results of the original query.

-- Jack Krupansky

-----Original Message----- 
From: Jack Krupansky
Sent: Sunday, June 10, 2012 1:25 PM
Subject: Re: x most similar documents

Yes, it sounds like MLT is the way to go, but sometimes you have to get
creative in figuring out how to set the numerous parameters. And sometimes
you have to use the MLT request handler rather than /select with the MLT

You might also encounter issues related to the shortness of the text of
tweets. Some of the MLT parameters might be optimized for much larger texts.

Can you give us an example of a (very brief) tweet that your query finds,
the tweet(s) that MLT returns, and what other tweet(s) you would have

MLT will use the first search result from the original query.

-- Jack Krupansky

-----Original Message----- 
From: Benjamin Murauer
Sent: Sunday, June 10, 2012 7:32 AM
Subject: x most similar documents

Hi there,
i have a solr server running containing tweets. my schema.xml contains
following fields:

<field name="id" type="string" indexed="true" stored="true"
required="true" />
<field name="tweet" type="text_general"
indexed="true" stored="true" termVectors="true"/>
name="hashtags" type="text_general" indexed="true" stored="true"

my problem is actually quite simple; somewhere in my GUI the user types
text and i want to retrieve tweets that are most similar to it.
Therefore, i tried the "morelikethis" functionality. My problem is that
currently, mlt finds additional tweets to every tweet found by the
"select" handler. I'm not sure however if the select handler finds the
most fitting tweet or just returns the first match. currently, i am
using following query:


Am i missing something critical? So eventually, i just want to retrieve
x tweets with the most similar text, sorted by their similarity (cosine
of termVectors). Is MoreLikeThis the way to go?

Thanks in advance! 

View raw message