lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paras Chopra <>
Subject Re: Can I exclude certain terms from MoreLikeThis query?
Date Tue, 25 Aug 2009 06:43:11 GMT
Hi Koji,
Thank you for your reply. Actually, the terms I would like to exclude would
be based on the document I use for MoreLikeThis Query. As I understand
from StopFilter,
it is a static method to exclude terms such as stop words.

My problem is that I want to return theme/area specific results for
MoreLikeThis. Usually, MoreLikeThis picks up nouns such as names and returns
results based on them as it finds them as interesting. I would rather like
it to return results based on general theme of a text. So, I was wondering
if I can prevent MoreLikeThis to exclude results containing a list of
detected nouns that I provide per document.

Paras Chopra

On Tue, Aug 25, 2009 at 11:30 AM, Koji Sekiguchi <> wrote:

> Paras Chopra wrote:
>> Hi All,
>> I am tinkering with MoreLikeThis component of Solr and had a particular
>> use
>> case where I would like to exclude certain terms from consideration while
>> MoreLikeThis makes a query vector out of a document. Is it possible with
>> Solr? I searched for this in the documentation but wasn't able to find a
>> method.
>> Thanks in advance,
>> Paras Chopra
> How about using StopFilter that excludes certain terms on a field,
> then specify the field for mlt.fl parameter when executing MLT?
> Koji


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message