1

When I search for an Account that has 'x' number of contacts, the Search results that come up using Global Search (Top Header) shows only 1 Contact as a result. Why is this? Should it not show all the Contacts under that Account? I know I can generate a report, I'm just wondering why it works as it does.

  • Is it possible that there was a direct match on the Contact name that also brought it up with the Account? I just did a test searching for 'foo'. It brought up 1 Account with foo in the name and two Contacts that also had foo in the name. – Daniel Ballinger Jun 6 '14 at 1:45
1

Lookup fields are indexed, but not in the "Search" sense: the values are indexed by ID to make it easy to find records when you use a lookup, such as SELECT Id, Name, AcccountId FROM Contact WHERE AccountId in :somevalues. This is because a change to an account name would cause a massive re-indexing call otherwise. Your search would return values where the search keyword was also present in another field, such as Description or Mailing Address (any field which can be searched upon). You cannot, nor should not, rely on searches returning all child records where a parent record matches the particular search.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.