Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Sorting based on name and phone number only #52

Open
Shithin opened this issue Oct 10, 2017 · 1 comment
Open

Sorting based on name and phone number only #52

Shithin opened this issue Oct 10, 2017 · 1 comment

Comments

@Shithin
Copy link

Shithin commented Oct 10, 2017

How can I sort based on name and phone number only. Currently fuzzy search considers email and other fields also.

@NickEntin
Copy link
Contributor

Depending on the results you are looking for, you might be able to just use a OHSplitOnFieldTypePostProcessor to get all phone numbers for contacts and search through there. Or you could write a custom post processor that removes the email addresses from contacts without splitting them. If you specifically want to keep contacts with all info and only search for name and phone number, you could write a custom version of OHFuzzyMatchingUtility that only generates OHContactMatchNominee objects for name and phone number fields.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants