def match(self, query=None, **kwargs):
from invenio.search_engine import perform_request_search<EOL>if not query:<EOL><INDENT>recid = self.record["<STR_LIT>"][<NUM_LIT:0>][<NUM_LIT:3>]<EOL>return perform_request_search(p="<STR_LIT>" % (recid,),<EOL>of="<STR_LIT:id>")<EOL><DEDENT>else:<EOL><INDENT>if "<STR_LIT>" not in kwargs:<EOL><INDENT>kwargs["<STR_LIT>"] = self.record["<STR_LIT>"][<NUM_LIT:0>][<NUM_LIT:3>]<EOL><DEDENT>return perform_request_search(p=query % kwargs,<EOL>of="<STR_LIT:id>")<EOL><DEDENT>
Try to match the current record to the database.