Hi, if you have text to pass in, why do you need MoreLikeThis? The text you speak of can be used as a normal query, so pass it in as a regular multi-word query.
Otis -- Sematext -- http://sematext.com/ -- Solr - Lucene - Nutch ----- Original Message ---- > From: ldung <dung....@gmail.com> > To: solr-user@lucene.apache.org > Sent: Thu, January 21, 2010 8:08:41 PM > Subject: MoreLikeThis - How to pass in external text? > > > How can I have the MoreLikeThis query process a piece of text that is passed > into the query. Currently I can only get it MoreLikeThis to work only for > pieces of text that are already indexed by Solr. > > For example here is a query that works for using MoreLikeThis for document > with id:134847893. > > http://localhost:8983/solr/select?mlt=true&q=id:134847893&mlt.fl=desc&mlt.mindf=1&mlt.mintf=1&debugQuery=on > > How can I pass in some external text like 'Solr Rocks'. Below is an example > of how it would look like. > > http://localhost:8983/solr/select?mlt=true&external.text=Solr > Rocks&mlt.fl=desc&mlt.mindf=1&mlt.mintf=1&debugQuery=on > > > -- > View this message in context: > http://old.nabble.com/MoreLikeThis---How-to-pass-in-external-text--tp27266316p27266316.html > Sent from the Solr - User mailing list archive at Nabble.com.