Issue on global search API(500)

Hi Team,

We are facing an issue with Globar search API, for Contacts objects API working fine but the Teams object it's not working, let us know what are objects are supported by global search API. Or Do we have to enable any settings in the sugar portal?

https://{domain}/rest/v10/globalsearch?max_num=30&offset=0&q=glob&module_list=Contacts
Response code:200

Response:
{
"next_offset": -1,
"total": 0,
"query_time": 1,
"records": []
}

Error case:
https://{domain}/rest/v10/globalsearch?max_num=30&offset=0&q=glob&module_list=Teams
Response code:500

Response:
{
"error": "search_runtime",
"error_message": "A search engine runtime error occurred. Please contact your System Administrator."
}

  • I am not sure teams is part of global search,  when I look at the Full Text Search configuration page I don't see teams listed.

  • I tried it in my Sugar PRO 11.0 with both rest v11 and rest v10:

    rest/v10/globalsearch?max_num=30&offset=0&q=glob&module_list=Teams

    And in both v10 and v11 the result is an error code:

    object(stdClass)#2 (2) { ["error"]=> string(14) "search_runtime" ["error_message"]=> string(81) "A search engine runtime error occurred. Please contact your System Administrator." }

    Which makes sense given that in Admin->Search the Teams module is not available, as  pointed out.

    FrancescaS

  • Hi 

    The object execute global search use a filter to return only the list of modules based on user context ACL.

    Also sugarcrm not allow work over some module in this case "Teams" is not visible for this functionality.

    See more into Global Search

    Nice day. Bye Bye!