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."
}

Parents
  • 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

Reply
  • 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

Children
No Data