How to search email addresses or full sentences using the global search ?

Hello,

before we dive on how we can extend ElasticSearch and better understand the analyzers and other matchphrases criteria, I want to see if there is an out of the box way to use special character that will force Sugar to search the full email address or maybe several words that must match the corresponding order (for instance by using " arround the search sentence) ?

If not, maybe you can tell me if the following article are still up to date solution to do it :

-  RE: Impossible to filter on Emails list view with Email from 

-  RE: Change analyzer in specific field in elasticsearch 

-  Elasticsearch Deep Dive 

-  Tutorial: Customizing Elasticsearch 

Thanks for your help,

Fred

Parents Reply
  • Hi,

    There is no out-of-the-box feature to search emails using special characters. If you open the Sugar core file Elasticsearch/Provider/GlobalSearch/Handler/Implement/EmailAddressHandler.php, the analyzers used in the email handler are generic, "whitespace" and "ngram".

    Regarding Sugar's GlobalSearch customization, the methods mentioned in the links you provided are still valid. Sugar has been using the same architecture for the past 10 years.

Children
No Data