How to make autocomplete search by an entity field instead of by name? Let's say we have 3 custom entities:



When creating a new operator, I need to autocomplete the license: 



By default we can use the autocomplete to find by name. So, we need to type the name to display the related results.

But here I'd like to autocomplete by authority name instead (since a license has no name).

Is it possible? If so, how to do it?
Create a new view with the display type "Entity Reference"
Add "Fields", "Filter criteria" and "Sort criteria" like in any other normal view
Under "Format > Settings", select the fields you want to be searchable
Under "Show > Settings", select the fields you want to show as search result
Save the view
Now visit "Structure > Content type > NODETYPE > Manage fields"
Edit your entity reference field, set the "Reference Method" to "Views: filter by an entity reference view"
Select your previously created view