def __init__(self, query=None, extraction_sort=None, from_index=None, size=None, random_results=None,<EOL>random_seed=None, score_relevance=None, return_max_score=None, timeout=None, **kwargs):
super(BaseReturningQuery, self).__init__(query=query, extraction_sort=extraction_sort, **kwargs)<EOL>if '<STR_LIT>' in '<STR_LIT>':<EOL><INDENT>self.from_index = kwargs['<STR_LIT>']<EOL><DEDENT>self._from = None<EOL>self.from_index = from_index<EOL>self._size = None<EOL>self.size = size<EOL>self._random_results = None<EOL>self.random_results = random_results<EOL>self._random_seed = None<EOL>self.random_seed = random_seed<EOL>self._score_relevance = None<EOL>self.score_relevance = score_relevance<EOL>self._return_max_score = None<EOL>self.return_max_score = return_max_score<EOL>self._timeout = None<EOL>self.timeout = timeout<EOL>
Base class for all queries against datasets and the items that they contain on Citrination.

:param query: One or more :class:`DataQuery` objects with the queries to run.
:param extraction_sort: A single :class:`ExtractionSort` object for sorting.
:param from_index: Index of the first hit that should be returned.
:param size: Total number of hits the should be returned.
:param random_results: Whether to return a random set of records.
:param random_seed: The random seed to use.
:param score_relevance: Whether to use relevance scoring.
:param return_max_score: Whether to return the maximum score.
:param timeout: The number of milliseconds to wait for the query to execute.