I need to retrieve a contact from xDB, but I don't have that contact's identifier.
Normally I would do it like this:
ContactRepository contactRepo = Sitecore.Configuration.Factory.CreateObject("tracking/contactRepository", true) as ContactRepository; Contact contact = contactRepo.LoadContactReadOnly(someIdentifier);
However, the identifier used in
LoadContactReadOnly (or in
TryLoadContact) is unknown.
I do, however, know the value of some of the other facets on the contact.
How can I get a contact (or many contacts) from xDB that has a specific value in a facet other than
Identifier? For example, get all contacts with a specific email address in the