Using get_records to return items by element value

Can the function get_records be used to return all items that have a metadata element with a particular value? For example if 'Year' is an 'Item Type Metadata' element, and I wish to return all items where Year == 2005 would this pseudocode work?

$itemsByYear = get_records('Item',array([somehow capture Year == 2005]),1000);

You can do that.

You use an "advanced" search to query against specific elements:

array(
    'advanced' => array(
        array(
            'element_id' => [The ID for your Year element]
            'type' => 'is exactly',
            'terms' => '2005'
        )
    )
)