Wait a second, and let's avoid any confusion. We can have different input for a More Like This Request Handler ( if this is what you were using).
1) the Id of the document we want to find similar documents to 2) a bunch of text Then you have a lot of parameters that will affect the MLT core. Specifically the : mlt.qf=name is telling the MLT to use the field "name" for the MLT query and the input document. Let's go back to the query parser... Your query : "{!mlt qf=name}1" means : "give me similar documents to the document 1, based only on the field "name" ". According to what you wrote : " Right now,I'm getting mlt documents based on a "keyword" field" I think the query you want is simply : {!mlt qf=keyword}<id> For MLT query parser the document id is the only input supported. Cheers On Wed, Apr 6, 2016 at 12:29 AM, Shamik Bandopadhyay <sham...@gmail.com> wrote: > Hi, > > I'm trying to use the new MLT query parser in a SolrCloud mode. As per > the documentation, here's the syntax, > > {!mlt qf=name}1 > > where "1" is the id. > > What I'm trying to undertsand is whether "id" is a mandatory field in > making this work? Right now,I'm getting mlt documents based on a "keyword" > field. With the new query parser,I'm not able to see a way to use another > field except for id. Is this a constraint? Or there's a different syntax? > > Any pointers will be appreciated. > > Thanks, > Shamik > -- -------------------------- Benedetti Alessandro Visiting card : http://about.me/alessandro_benedetti "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England