You definitely need "mlt=true" if you are not using /solr/mlt.

Bill

On Wed, Jul 8, 2009 at 2:14 PM, Otis Gospodnetic <otis_gospodne...@yahoo.com
> wrote:

>
> Sergey,
>
> What about
> http://localhost:8080/solr/select?q=id:10&mlt=true&mlt.fl=content_mlt&mlt.maxqt=
> 5&mlt.interestingTerms=details&fl=title+author+score&qt=mlt<http://localhost:8080/solr/select?q=id:10&mlt=true&mlt.fl=content_mlt&mlt.maxqt=%0A5&mlt.interestingTerms=details&fl=title+author+score&qt=mlt>
>
> ?
>
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>
>
>
> ----- Original Message ----
> > From: SergeyG <sgoldb...@mail.ru>
> > To: solr-user@lucene.apache.org
> > Sent: Wednesday, July 8, 2009 9:44:20 AM
> > Subject: Solr's MLT query call doesn't work
> >
> >
> > Hi,
> >
> > Recently, while implementing the MoreLikeThis search, I've run into the
> > situation when Solr's mlt query calls don't work.
> >
> > More specifically, the following query:
> >
> >
> http://localhost:8080/solr/select?q=id:10&mlt=true&mlt.fl=content_mlt&mlt.maxqt=
> > 5&mlt.interestingTerms=details&fl=title+author+score
> >
> > brings back just the doc with id=10 and nothing else. While using the
> > GetMethod approach (putting /mlt explicitely into the url), I got back
> some
> > results.
> >
> > I've been trying to solve this problem for more than a week with no luck.
> If
> > anybody has any hint, please help.
> >
> > Below, I put logs & outputs from 3 runs: a) Solr; b) GetMethod (/mlt); c)
> > GetMethod (/select).
> >
> > Thanks a lot.
> >
> > Regards,
> > Sergey Goldberg
> >
> >
> > Here're the logs:
> >
> > a) Solr (http://localhost:8080/solr/select)
> > 08.07.2009 15:50:33 org.apache.solr.core.SolrCore execute
> > INFO: [] webapp=/solr path=/select
> > params={fl=title+author+score&mlt.fl=content_mlt&q=id:10&mlt=
> > true&mlt.interestingTerms=details&mlt.maxqt=5&wt=javabin&version=2.2}
> hits=1
> > status=0 QTime=172
> >
> > INFO MLTSearchRequestProcessor:49 - SolrServer url:
> > http://localhost:8080/solr
> > INFO MLTSearchRequestProcessor:67 - solrQuery>
> > q=id%3A10&mlt=true&mlt.fl=content_mlt&mlt.maxqt=
> >     5&mlt.interestingTerms=details&fl=title+author+score
> > INFO MLTSearchRequestProcessor:73 - Number of docs found = 1
> > INFO MLTSearchRequestProcessor:77 - title = SG_Book; score = 2.098612
> >
> >
> > b) GetMethod (http://localhost:8080/solr/mlt)
> > 08.07.2009 16:55:44 org.apache.solr.core.SolrCore execute
> > INFO: [] webapp=/solr path=/mlt
> > params={fl=title+author+score&mlt.fl=content_mlt&q=id:10&mlt.max
> > qt=5&mlt.interestingTerms=details} status=0 QTime=15
> >
> > INFO MLT2SearchRequestProcessor:76 -
> >
> > 0
> > name="QTime">0
> > maxScore="2.098612">2.098612S.G.
> > name="title">SG_Book
> > umFound="4" start="0" maxScore="0.28923997">
> > name="score">0.28923997O.
> > HenryS.G.Four Million,
> > The0.08667877
> > name="author">Katherine MosbyThe Season
> > of Lillian Dawes0.07947738
> > name="author">Jerome K. JeromeThree Men
> > in a Boat
> > name="score">0.047219563Charles
> > OliverS.G.ABC's of
> > Science
> > name="content_mlt:ye">1.0
> > name="content_mlt:tobin">1.0
> > name="content_mlt:a">1.0
> > name="content_mlt:i">1.0
> > name="content_mlt:his">1.0
> >
> >
> >
> > c) GetMethod (http://localhost:8080/solr/select)
> > 08.07.2009 17:06:45 org.apache.solr.core.SolrCore execute
> > INFO: [] webapp=/solr path=/select
> > params={fl=title+author+score&mlt.fl=content_mlt&q=id:10&mlt.
> > maxqt=5&mlt.interestingTerms=details} hits=1 status=0 QTime=16
> >
> > INFO MLT2SearchRequestProcessor:80 -
> >
> > 0
> > name="QTime">16title author
> > scorecontent_mltid:10
> > name="mlt.maxqt">5
> > name="mlt.interestingTerms">details
> > numFound="1" start="0" maxScore="2.098612">
> > name="score">2.098612S.G.
> > name="title">SG_Book
> > name="rawquerystring">id:10id:10
> > name="parsedq
> > uery">id:10id:10
> > name="explain">
> > 2.098612 = (MATCH) weight(id:10 in 3), product of:
> >   0.99999994 = queryWeight(id:10), product of:
> >     2.0986123 = idf(docFreq=1, numDocs=5)
> >     0.47650534 = queryNorm
> >   2.0986123 = (MATCH) fieldWeight(id:10 in 3), product of:
> >     1.0 = tf(termFreq(id:10)=1)
> >     2.0986123 = idf(docFreq=1, numDocs=5)
> >     1.0 = fieldNorm(field=id, doc=3)
> > OldLuceneQParser
> > name="timing">16.0
> > name="time">0.0
> > name="org.apache.solr.handler.component.QueryComponent">
> > name="time">0.0
> > name="org.apache.solr.handler.component.FacetComponent">
> > name="time">0.00.0
> > name="org.apache.solr.handler.component.HighlightComponent">
> > name="time">0.0
> > name="org.apache.solr.handler.component.DebugComponent">
> > name="time">0.0
> > name="time">16.0
> > name="org.apache.solr.handler.component.QueryComponent">
> > name="time">0.0
> > name="org.apache.solr.handler.component.FacetComponent">
> > name="time">0.0
> > name="org.apache.solr.handler.component.MoreLikeThisComponent">
> > name="time">0.0
> > name="org.apache.solr.handler.component.HighlightComponent">
> > name="time">0.0
> > name="org.apache.solr.handler.component.DebugComponent">
> > name="time">16.0
> >
> >
> >
> > And here're the relevant entries from solrconfig.xml:
> >
> >
> >
> >
> >       explicit
> >       id,title,author,score
> >       on
> >
> >
> >
> >
> >
> >       1
> >       10
> >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/Solr%27s-MLT-query-call-doesn%27t-work-tp24391843p24391843.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to