You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jamie Johnson <je...@gmail.com> on 2012/02/15 07:27:42 UTC

MoreLikeThis Question

Is there anyway with MLT to say get similar based on all fields or is
it always a requirement to specify the fields?

Re: MoreLikeThis Question

Posted by Jamie Johnson <je...@gmail.com>.
Yes, agree that ID would be one that would need to be ignored.  I
don't think specifying them is too difficult I was just curious if it
was possible to do this or not.

On Wed, Feb 15, 2012 at 8:41 AM, Chantal Ackermann
<ch...@btelligent.de> wrote:
> Hi,
>
> you would not want to include the unique ID and similar stuff, though?
> No idea whether it would impact the number of hits but it would most
> probably influence the scoring if nothing else.
>
> E.g. if you compare by certain fields, I would expect that a score of
> 1.0 indicates a match on all of those fields (haven't tested that
> explicitly, though). If the unique ID is included you could never reach
> that score.
>
> Just my 2 cents...
>
> Chantal
>
>
> On Wed, 2012-02-15 at 07:27 +0100, Jamie Johnson wrote:
>> Is there anyway with MLT to say get similar based on all fields or is
>> it always a requirement to specify the fields?
>

Re: MoreLikeThis Question

Posted by Chantal Ackermann <ch...@btelligent.de>.
Hi,

you would not want to include the unique ID and similar stuff, though?
No idea whether it would impact the number of hits but it would most
probably influence the scoring if nothing else.

E.g. if you compare by certain fields, I would expect that a score of
1.0 indicates a match on all of those fields (haven't tested that
explicitly, though). If the unique ID is included you could never reach
that score.

Just my 2 cents...

Chantal


On Wed, 2012-02-15 at 07:27 +0100, Jamie Johnson wrote:
> Is there anyway with MLT to say get similar based on all fields or is
> it always a requirement to specify the fields?


Re: MoreLikeThis Question

Posted by Michael Jakl <ja...@gmail.com>.
Hi!

On Wed, Feb 15, 2012 at 07:27, Jamie Johnson <je...@gmail.com> wrote:
> Is there anyway with MLT to say get similar based on all fields or is
> it always a requirement to specify the fields?

It seems to be not the case. But you could append the fields Parameter
in the solrconfig.xml:
<lst name="appends">
     <str name="mlt.fl">...</str>
</lst>

Cheers,
Michael