1

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

Jesal
  • 97
  • 1
  • 5
  • Search module not using component as content source. – Dmitry Jun 06 '17 at 16:43
  • Thanks Dmitry. How can I extend the search module to include component in content source? Will adding to b_search_content help? – Jesal Jun 06 '17 at 22:50

1 Answers1

0

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

Dmitry
  • 2,057
  • 1
  • 18
  • 34