nodes: 0, module; 1, function_definition; 2, function_name:text_search; 3, parameters; 4, block; 5, identifier:conn; 6, identifier:search; 7, keyword_separator; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, default_parameter; 12, default_parameter; 13, default_parameter; 14, expression_statement; 15, raise_statement; 16, identifier:language; 17, string; 18, identifier:case_sensitive; 19, False; 20, identifier:diacritic_sensitive; 21, False; 22, identifier:text_score; 23, False; 24, identifier:limit; 25, integer:0; 26, identifier:table; 27, None; 28, comment:"""Return all the assets that match the text search.
  
      The results are sorted by text score.
      For more information about the behavior of text search on MongoDB see
      https://docs.mongodb.com/manual/reference/operator/query/text/#behavior
  
      Args:
          search (str): Text search string to query the text index
          language (str, optional): The language for the search and the rules for
              stemmer and tokenizer. If the language is ``None`` text search uses
              simple tokenization and no stemming.
          case_sensitive (bool, optional): Enable or disable case sensitive
              search.
          diacritic_sensitive (bool, optional): Enable or disable case sensitive
              diacritic search.
          text_score (bool, optional): If ``True`` returns the text score with
              each document.
          limit (int, optional): Limit the number of returned documents.
  
      Returns:
          :obj:`list` of :obj:`dict`: a list of assets
  
      Raises:
          OperationError: If the backend does not support text search
      """; 29, call; 30, string_content:english; 31, identifier:OperationError; 32, argument_list; 33, concatenated_string; 34, string; 35, string; 36, string_content:This query is only supported when running; 37, string_content:BigchainDB with MongoDB as the backend.
code: def text_search(conn, search, *, language='english', case_sensitive=False,
                  diacritic_sensitive=False, text_score=False, limit=0, table=None):
      """Return all the assets that match the text search.
  
      The results are sorted by text score.
      For more information about the behavior of text search on MongoDB see
      https://docs.mongodb.com/manual/reference/operator/query/text/#behavior
  
      Args:
          search (str): Text search string to query the text index
          language (str, optional): The language for the search and the rules for
              stemmer and tokenizer. If the language is ``None`` text search uses
              simple tokenization and no stemming.
          case_sensitive (bool, optional): Enable or disable case sensitive
              search.
          diacritic_sensitive (bool, optional): Enable or disable case sensitive
              diacritic search.
          text_score (bool, optional): If ``True`` returns the text score with
              each document.
          limit (int, optional): Limit the number of returned documents.
  
      Returns:
          :obj:`list` of :obj:`dict`: a list of assets
  
      Raises:
          OperationError: If the backend does not support text search
      """
  
      raise OperationError('This query is only supported when running '
                           'BigchainDB with MongoDB as the backend.')