original_docstring: Perform a MoreLikeThis query using the content specified
          There may be no content if stream.url is specified in the params.
          
docstring: Perform a MoreLikeThis query using the content specified
  There may be no content if stream.url is specified in the params.
docstring_tokens: Perform a MoreLikeThis query using the content specified There may be no content if stream . url is specified in the params .
code: def mlt(self, params, content=None):
          """Perform a MoreLikeThis query using the content specified
          There may be no content if stream.url is specified in the params.
          """
          if not self.readable:
              raise TypeError("This Solr instance is only for writing")
          qs = urllib.urlencode(params)
          base_url = "%s?%s" % (self.mlt_url, qs)
          method = 'GET'
          kwargs = {}
          if content is None:
              url = base_url
          else:
              get_url = "%s&stream.body=%s" % (base_url, urllib.quote_plus(content))
              if len(get_url) <= self.max_length_get_url:
                  url = get_url
              else:
                  url = base_url
                  method = 'POST'
                  kwargs = {
                      'data': content,
                      'headers': {"Content-Type": "text/plain; charset=utf-8"}}
          response = self.request(method, url, **kwargs)
          if response.status_code != 200:
              raise SolrError(response)
          return response.content
code_tokens: def mlt ( self , params , content = None ) : if not self . readable : raise TypeError ( "This Solr instance is only for writing" ) qs = urllib . urlencode ( params ) base_url = "%s?%s" % ( self . mlt_url , qs ) method = 'GET' kwargs = { } if content is None : url = base_url else : get_url = "%s&stream.body=%s" % ( base_url , urllib . quote_plus ( content ) ) if len ( get_url ) <= self . max_length_get_url : url = get_url else : url = base_url method = 'POST' kwargs = { 'data' : content , 'headers' : { "Content-Type" : "text/plain; charset=utf-8" } } response = self . request ( method , url , ** kwargs ) if response . status_code != 200 : raise SolrError ( response ) return response . content
short_docstring: Perform a MoreLikeThis query using the content specified
  There may be no content if stream.url is specified in the params.
short_docstring_tokens: Perform a MoreLikeThis query using the content specified There may be no content if stream . url is specified in the params .
comment: """Perform a MoreLikeThis query using the content specified
          There may be no content if stream.url is specified in the params.
          """