: is it possible to use MLT as a nested query? I tried the following: : ....select?q=field1:foo field2:bar AND _query_:"{!mlt fl=mltField mindf=1 mintf=1 mlt.match.include=false} selectField:baz}"
MLT functionality exists in two forms: as a component, that decorates results produced by another search (similar to highlighting and faceting), and as a handler that produces a main result set based on an MLT query (so highlighting and faceting happen to the results of the MLT itself)... https://wiki.apache.org/solr/MoreLikeThis In order for what you are describing to work, someone would have to implement a MLT "QParser" but no one has ever attempted that to my knowledge. I have considered looking into it, and i suspect it would be somewhat straight forward to do, but only for single node instances -- there is no way i know of for a QParser to sanely generate a query like MLT based on the terms of distributed shards. -Hoss