I just finished installing and configuring elasticsearch and it’s “working”… however we’ve noticed there is a problem when searching for email addresses.
specifically when searching for domain names.
Example:
If I search for “customername@theirdomain.com”, I get back the specific contact with that email address. However, if I search for “theirdomain.com” I get results for everyone with that domain name in their email. Likewise, if I search for “anothername@long.sub.domain.com” I also get the relevant contact… HOWEVER, if I search for “long.sub.domain.com” I get zero results.
This is the same when searching from cli using: sudo -u www-data vendor/bin/robo elastic:search "anothername@long.sub.domain.com"
and sudo -u www-data vendor/bin/robo elastic:search "long.sub.domain.com"
I get the expected results which I do NOT see in suitecrm.
Correction… when I add “*” at the beginning of my search string in suitecrm, now it works as expected… why would that make a diference? when I search for “domain.com”, I get the results I expected to get for “long.sub.domain.com” and more. only when I search for “*long.sub.domain.com” do I get the expected results.