Subject: Update: More Information, Still Lacking Understanding
The contact documents I was using had Full_Name field instead of FullName, and Surname instead of LastName field. But I had changed all the views to use Full_Name and Surname fields, so as far as I could understand it should work.
However, as soon as I added a FullName field, the type-ahead, ‘Search directory for…’ option then picked up the user, BUT only if I typed the name in the full name order, i.e. “Paul W”. It still does not work if I type the surname first, although other directories do. This still did not work when I set a LastName field.
I had also modified the selection formula of the ($NamesFieldLoookup) view to restrict only to users who had an email address. By playing about with that selection formula, the type-ahead search of directories is definitely using this view. As soon as I include a use only in that view, they appear in the search; change it back and they disappear immediately.
To test my hypothesis in a different direction, I also tried using @NameLookup. This seems to work in a similar way, using ($NamesFieldLookup) view.
So, in conclusion so far, it seems to be doing a search of entries in the ($NamesFieldLookup) view, matching the entry typed against specific field names.
If anyone knows or can work out what those fields are, I would be very grateful. If anyone knows or can work out where the field names it searches on are configured, even better.
Otherwise, for anyone trying to get this working, best recommendation is to ensure the contact documents use the same fields as the Domino Directory.