Consider the values of referenced fields in the back end search (see #4376)