I want to add the ability to be able to search for products by entity id.

How would I go about editing the catalog search module to support this feature?

Thanks in advanced.

  • Which version of Magento? What search engine are you using? – philwinkle Jun 29 '16 at 19:44
  • Is Magento ver., modify this functions and nothing works, tried here: addSearchFilter , _ getAttributesCollection. in Collection.php – Magento New Developer Jun 29 '16 at 19:58
  • On a very brief level, you'll need to make entity_id attribute searchable via code. It will be done at 1.) When preparing indexes, and 2.) When performing actual query. – Prateek Jun 30 '16 at 12:15
  • 1
    Thanks, I tried to add code in preparing indexes, but not found the function for this, could you give me the function name please? for 1 or 2 options? so I will try to changes the code in the correct function. – Magento New Developer Jul 4 '16 at 15:01
  • I'm working in FullText.php file and view for changes in _rebuildStoreIndex function, is it right? – Magento New Developer Jul 4 '16 at 18:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.