def _get_modified_recids_invenio2(from_date):
from invenio.legacy.search_engine import search_pattern<EOL>from invenio.modules.records.models import Record<EOL>date = datetime.datetime.strptime(from_date, '<STR_LIT>')<EOL>return set(<EOL>(x[<NUM_LIT:0>]<EOL>for x in Record.query.filter(Record.modification_date >= date).values(<EOL>Record.id))), search_pattern<EOL>
Get record ids for Invenio 2.