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 Andrew Nagy <an...@villanova.edu> on 2007/06/25 17:06:17 UTC
MoreLikeThis woes
Hello, I have been playing off and on with the more like this patch and I really want to get it working well. I have the patch installed and I have about 500K bibliographic records in my solr index.
My MLT query uses a fieldlist of about 5 or 6 fields. There are a mix of string and text fields. They are all in a TermVector. I have played around with the mindf values. With about 90% of my mlt queries solr it returns no matches and the remaining 10% get completely irrelevant results.
Are there any "best practices" for the MLT search or am I possibly doing something wrong?
Thanks
Andrew
Re: MoreLikeThis woes
Posted by Brian Whitman <br...@variogr.am>.
> My MLT query uses a fieldlist of about 5 or 6 fields. There are a
> mix of string and text fields. They are all in a TermVector. I
> have played around with the mindf values. With about 90% of my mlt
> queries solr it returns no matches and the remaining 10% get
> completely irrelevant results.
Set debugQuery on to see the generated query. Also try mlt.mintf=1 if
your source fields are singleton-types.
Re: MoreLikeThis woes
Posted by Ryan McKinley <ry...@gmail.com>.
Andrew Nagy wrote:
> Hello, I have been playing off and on with the more like this patch and I really want to get it working well. I have the patch installed and I have about 500K bibliographic records in my solr index.
>
> My MLT query uses a fieldlist of about 5 or 6 fields. There are a mix of string and text fields. They are all in a TermVector. I have played around with the mindf values. With about 90% of my mlt queries solr it returns no matches and the remaining 10% get completely irrelevant results.
>
> Are there any "best practices" for the MLT search or am I possibly doing something wrong?
>
> Thanks
> Andrew
>
If you are using MLT on the standard request handler, try debugging with
the MoreLikeThisRequestHandler (/mlt).
as brian suggests, set debugQuery to true and make sure the generated
query looks ok.
also add "&mlt.displayTerms=details" to see what terms are getting used.
I'm not exactly sure what query gets constructed from 6 fields - you may
find some wierdness if different tokenizers/analyzers. Perhaps try MLT
with 1 or two fields and see if the results make sense, them add more
fields...