AnsweredAssumed Answered

How to search an email by description through global search

Question asked by frinaldi on Jun 21, 2018

Hello,

 

First, I use SugarCRM 8 Enterprise on Premise.

 

Today, there is no way to search an email according to its content (description / description html fields) using the Global Search.


The email module can't be manage through the studio.

 

So I try to update the vardef definition of the description field of the email :

custom\Extension\modules\Emails\Ext\Vardefs\sugarfield_description.php

<?php
$dictionary['Email']['fields']['description']['full_text_search'] = array(
'enabled' => true,
'searchable' => true,
'type' => 'text',
);

 

Then, I see that my field is indexed :

root@xxx:/var/www/html/SugarEnt-Full-8.0.0# php bin/sugarcrm search:fields | grep Emails
| Emails | date_entered | datetime | no | n/a |
| Emails | date_modified | datetime | no | n/a |
| Emails | assigned_user_id | id | no | n/a |
| Emails | modified_user_id | id | no | n/a |
| Emails | created_by | id | no | n/a |
| Emails | from_addr_name | varchar | no | n/a |
| Emails | description | text | yes | 1 |
| Emails | date_sent | datetime | no | n/a |
| Emails | name | name | yes | 1 |
| Emails | favorite_link | favorites | no | n/a |
| Emails | tag | tag | no | n/a |

I scheduled a full reindexation ; but, when I search, it doesn't work.
Any idea?

Kind regards,
Fred

Outcomes