Otis, Your recipe does work: after copying an indexing field and excluding stop words the MoreLikeThis query started fetching meaningful results. :)
Just one issue remained. When I execute query in this way: String query = "q=id:1&mlt.fl=content&...&fl=title+author+score"; HttpClient client = new HttpClient(); GetMethod get = new GetMethod("http://localhost:8080/solr/mlt"); get.setQueryString(query); client.executeMethod(get); ... it works fine bringing results as an XML string. But when I use "Solr-like" approach: String query = "id:1"; solrQuery.setQuery(query); solrQuery.setParam("mlt", "true"); solrQuery.setParam("mlt.fl", "content"); solrQuery.setParam("fl", "title author score"); QueryResponse queryResponse = server.query( solrQuery ); the result contains only one doc with id=1 and no other "more like" docs. In my solrconfig.xml, I have these settings: <requestHandler name="/mlt" class="solr.MoreLikeThisHandler"> ... <requestHandler name="standard" class="solr.SearchHandler" default="true"> ... I guess it all is a matter of syntax but I can't figure out what's wrong. Thank you very much (and again, thanks to Michael and Walter). Cheers, Sergey Michael Ludwig-4 wrote: > > SergeyG schrieb: > >> Can both queries - PhraseQuery and MoreLikeThis Query - be implemented >> in the same app taking into account the fact that for the former to >> work the stop words list needs to be included and this results in the >> latter putting stop words among the most important words? > > Why would the inclusion of a stopword list result in stopwords being of > top importance in the MoreLikeThis query? > > Michael Ludwig > > -- View this message in context: http://www.nabble.com/Implementing-PhraseQuery-and-MoreLikeThis-Query-in-one-app-tp24303817p24314840.html Sent from the Solr - User mailing list archive at Nabble.com.