def __init__(self, conventions, index_query, metadata_only=False, index_entries_only=False):
        """
        @param IndexQuery index_query: A query definition containing all information required to query a specified index.
        @param bool metadata_only: True if returned documents should include only metadata without a document body.
        @param bool index_entries_only: True if query results should contain only index entries.
        @return:json
        :rtype:dict
        """
        super(QueryCommand, self).__init__(method="POST", is_read_request=True)
        if index_query is None:
            raise ValueError("Invalid index_query")
        if conventions is None:
            raise ValueError("Invalid convention")
        self._conventions = conventions
        self._index_query = index_query
        self._metadata_only = metadata_only
        self._index_entries_only = index_entries_only
def __init__ ( self , conventions , index_query , metadata_only = False , index_entries_only = False ) : super ( QueryCommand , self ) . __init__ ( method = "POST" , is_read_request = True ) if index_query is None : raise ValueError ( "Invalid index_query" ) if conventions is None : raise ValueError ( "Invalid convention" ) self . _conventions = conventions self . _index_query = index_query self . _metadata_only = metadata_only self . _index_entries_only = index_entries_only
@param IndexQuery index_query: A query definition containing all information required to query a specified index.
        @param bool metadata_only: True if returned documents should include only metadata without a document body.
        @param bool index_entries_only: True if query results should contain only index entries.
        @return:json
        :rtype:dict