Re: MLT as a nested query

2011-12-30 Thread Chris Hostetter

: 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


MLT as a nested query

2011-12-13 Thread Vyacheslav Zholudev
Hi, 

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}

but it does not work with an error:
Unknown query type 'mlt'

I guess I should have an MLT parser enabled in solrconfig.xml, but I was not 
able to find an implementation.

Does anybody have any suggestions?

Vyacheslav