def more_like_this(self, q, mltfl, handler='mlt', **kwargs):
        """
        Finds and returns results similar to the provided query.

        Returns ``self.results_cls`` class object (defaults to
        ``pysolr.Results``)

        Requires Solr 1.3+.

        Usage::

            similar = solr.more_like_this('id:doc_234', 'text')

        """
        params = {
            'q': q,
            'mlt.fl': mltfl,
        }
        params.update(kwargs)
        response = self._mlt(params, handler=handler)
        decoded = self.decoder.decode(response)

        self.log.debug(
            "Found '%s' MLT results.",
            # cover both cases: there is no response key or value is None
            (decoded.get('response', {}) or {}).get('numFound', 0)
        )
        return self.results_cls(decoded)
def more_like_this ( self , q , mltfl , handler = 'mlt' , ** kwargs ) : params = { 'q' : q , 'mlt.fl' : mltfl , } params . update ( kwargs ) response = self . _mlt ( params , handler = handler ) decoded = self . decoder . decode ( response ) self . log . debug ( "Found '%s' MLT results." , ( decoded . get ( 'response' , { } ) or { } ) . get ( 'numFound' , 0 ) ) return self . results_cls ( decoded )
Finds and returns results similar to the provided query.

        Returns ``self.results_cls`` class object (defaults to
        ``pysolr.Results``)

        Requires Solr 1.3+.

        Usage::

            similar = solr.more_like_this('id:doc_234', 'text')