Global Search in Default Themes Header Problem

Standard - either Product Name or Product Type

Hi Aaron,

the standart search using the name-field and brings with wildcard a reasonable result.

Hi Wieland.

What do you mean? as i search by Product Type which is a field thats built into SuiteCRM but isnt showing when search using global search and with AOD on?

Hi,

I have fixed my Cronjob it now is running fine the problem o fix it was:

replace SuiteCRM code with php-cli /home/username/public_html/subdomain/cron.php remember to change details to yours.

But i still cannot use the Header Global Search, to search for Products :frowning: i can search Contacts not a problem but searching for a product is still not working, if though have enabled it for ā€œGlobal Searchā€ in admin

Thanks
Aaron

Hi AOD, doesnt seem to work but Standard search is. but it only allows you to search product Name and only by the first part so if we have:

Xerox Phaser 3320 Compatible Toner Cartridge

If i type: Xerox it works. but if i type: 3320 - WILL NOT find it. and if i put: 3320 as the part number when editing product then do a search will not find the product

Thanks
Aaron

Hi, sorry to bump just wondering if ant one could give me an answer :slight_smile:

Hi Will,

How do we get custom fields into the Global Search?

Thanks,

Steve Fox

In this example I add a custom field to the contacts module and add it to global search.

I don’t use the AOD.

I never manage to get it to work and I don’t have a clue.

custom/Extension/modules/Contacts/Ext/Vardefs


$dictionary['Contact']['fields']['code'] = array(
    'name' => 'code',
    'vname' => 'LBL_CODE',
    'type' => 'varchar',
    'len' => 10,
    'required' => true,
    'audited' => true,
    'unified_search' => true,
);

To enable the search I have edit this file:

custom/modules/Contacts/metadata/SearchFields.php

And add the following code:


'code' => array(
        'query_type' => 'default'
    ),

I’d like to echo your experience.

I too never managed to get AOD working so I disabled it as the default global search appeared to do what I was looking for. I’ve added a few custom modules that don’t appear to be searchable by the global search. I found this article: http://developer.sugarcrm.com/2010/09/23/adding-custom-modules-to-global-search/ and followed it’s instructions but still no results are found.

Can anyone point me in the direction of how to debug the global search to see why its not including my custom module fields?

Would AOD solve this problem if I did manage to get it to work?

Thanks