Finding Drupal nodes by combinations of field values
In a Drupal 7 site, we have a node entity type for stored documents. This type has two custom fields - year and reference - which uniquely identify the node. These values look something like shown below, with the format being "<reference><hyphen><year>".
I'm receiving a list of these document references (perhaps hundreds at a time) and need an efficient way to find the corresponding node IDs. What's the best way to do this?