code: def make_search_body(index, query, params=None):
      
      dd = {}
  
      if not isinstance(query, Query):
          query = QueryStringQuery(query)
  
      dd['query'] = query.encodable
      if params:
          dd.update(params.as_encodable(index))
      dd['indexName'] = index
      return dd
docs: Generates a dictionary suitable for encoding as the search body
      :param index: The index name to query
      :param query: The query itself
      :param params: Modifiers for the query
      :type params: :class:`couchbase.fulltext.Params`
      :return: A dictionary suitable for serialization