Hm. I checked out a clean Solr 1.3.0 and indexed the example docs and set up a simple MLT handler the example queries on the Wiki work fine (fq can filter out docs). Our build has a slight change to QueryComponent so another query isn't done when we use localsolr+field collapsing, but that change doesn't look like it would make a difference. It just conditionally sets rb.setNeedDocSet() to true or false.

Will run some tests on a clean fresh build of Solr to see if it's our build.

Doug

On Mar 4, 2009, at 9:28 AM, Otis Gospodnetic wrote:


Doug,

does the good old 'fq' not work with MLT?  It should...


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



----- Original Message ----
From: Doug Steigerwald <dsteigerw...@mcclatchyinteractive.com>
To: solr-user@lucene.apache.org
Sent: Wednesday, March 4, 2009 9:20:40 AM
Subject: MoreLikeThis filtering

Is it possible to filter similarities found by the MLT component/ handler?
Something like mlt.fq=site_id:86?

We have 32 cores in our Solr install, and some of those cores have up to 8 sites indexed in them. Typically those cores will have one very large site with a few hundred thousand indexed documents, and lots of small sites with significantly
less documents indexed.

We're looking to implement a MLT component for our sites but want the similar
stories to be only for a specific site (not all sites in the core).

Is there a way to do something like this, or will we have to make mods (I'm not seeing anything jump out at me in the Solr 1.3.0 or Lucene 2.4.0 code)?

/solr/dsteiger/mlt?q=story_id:188665+AND+site_id:86&mlt.fq=site_id:86

(We have all all of our other defaults set up in the handler config.)

Thanks.
---
Doug Steigerwald
Software Developer
McClatchy Interactive
dsteigerw...@mcclatchyinteractive.com

Reply via email to