Search code examples
bitrix

Modify bitrix self-hosted crm search results


I've created a custom CRM component in Bitrix and placed it in the local folder. The global search and CRM search, however, does not search field values in this custom component.

How / where would I modify the search module to include the custom component?

Any pointers would be useful.

Thanks, Jesal


Solution

  • Component usually hasn't content for search.Look at MVC. Component is a controller. All content in a model. In bitrix case your model it's iblock module. For add iblock elements to search module you need go to iblock settings and set checkbox " Index elements for the Search module" http://joxi.ru/D2P8vgKspx4RQ2

    After that you need reindex all data on page /bitrix/admin/search_reindex.php?lang=en. http://joxi.ru/eAODvELfxbqDdr