58810758 Refactor search reference association

Uses polymorphic associaton instead of having separate foreign key
fields for each record