def get_custom_query(self):
query = {}<EOL>q = req.get_query()<EOL>if q:<EOL><INDENT>query["<STR_LIT>"] = q<EOL><DEDENT>path = req.get_path()<EOL>if path:<EOL><INDENT>query["<STR_LIT:path>"] = {'<STR_LIT>': path, '<STR_LIT>': req.get_depth()}<EOL><DEDENT>recent_created = req.get_recent_created()<EOL>if recent_created:<EOL><INDENT>date = api.calculate_delta_date(recent_created)<EOL>query["<STR_LIT>"] = {'<STR_LIT>': date, '<STR_LIT>': '<STR_LIT>'}<EOL><DEDENT>recent_modified = req.get_recent_modified()<EOL>if recent_modified:<EOL><INDENT>date = api.calculate_delta_date(recent_modified)<EOL>query["<STR_LIT>"] = {'<STR_LIT>': date, '<STR_LIT>': '<STR_LIT>'}<EOL><DEDENT>return query<EOL>
Extracts custom query keys from the index.

        Parameters which get extracted from the request:

            `q`: Passes the value to the `SearchableText`
            `path`: Creates a path query
            `recent_created`: Creates a date query
            `recent_modified`: Creates a date query

        :param catalog: The catalog to build the query for
        :type catalog: ZCatalog
        :returns: Catalog query
        :rtype: dict