Yes, have just noted it.
Added handler to solrconfig.xml, got java.lang.ClassNotFoundException: solr.MoreLikeThisHandler, looked at javadoc for this and found it.
Will try to download 1.3-dev and try mlt there.

Thanks a lot.

John Stewart wrote:
Isn't MoreLikeThis only available in the 1.3-dev builds?

jds

On Dec 29, 2007 10:07 AM, Otis Gospodnetic <[EMAIL PROTECTED]> wrote:
Instead of:

http://localhost:8983/solr/select?q=nid:7280&mlt=true&mlt.fl=title,body&mlt.mindf=1&mlt.mintf=1&fl=nid,title,score

Try:

http://localhost:8983/solr/mlt?q=nid:7280&mlt=true&mlt.fl=title,body&mlt.mindf=1&mlt.mintf=1&fl=nid,title,score

If that doesn't work, look at your solrconfig.xml and make sure you have /mlt 
handler defined.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch


----- Original Message ----
From: Vladimir Garvardt <[EMAIL PROTECTED]>
To: solr-user@lucene.apache.org
Sent: Saturday, December 29, 2007 5:32:50 AM
Subject: Search for related content

Hello.

I'm new to Solr and exploring its capabilities to use in my project.

I already implemented simple search and highlighting via Solr.
Now I need to implement search for related content.

As I understand the best way to do it is MoreLikeThis that I found
http://wiki.apache.org/solr/MoreLikeThis .

But when I tried to get MoreLikeThis results for document by ID the
 only
result I received is the document itself.

I run Solr on local machine from project example folder.

My Solr version is:

    Solr Specification Version: 1.2.0

    Solr Implementation Version: 1.2.0 - Yonik - 2007-06-02 17:35:12

    Lucene Specification Version: 2007-05-20_00-04-53

    Lucene Implementation Version: build 2007-05-20


shema.xml cut:
<field name="nid" type="integer" indexed="true" stored="true"/>
<field name="title" type="text" indexed="true" stored="true"
termVectors="true" />
<field name="body" type="text" indexed="true" stored="true"
termVectors="true" />

<uniqueKey>nid</uniqueKey>

URL with search conditions I'm executing:
http://localhost:8983/solr/select?q=nid:7280&mlt=true&mlt.fl=title,body&mlt.mindf=1&mlt.mintf=1&fl=nid,title,score

Thanks






Reply via email to