I need to add search engine to my component. In database I have three feilds: name, post, address. How to add searching with this fields separatly? For example in the view I add three fields and search button. When I click the button it searches for matches with some of the fields.

  • 3
    Please add the code that you are using in your view and any attempt to get the search working that you have tried so far. Commented Aug 30, 2014 at 16:49
  • @DavidFritsch I dont' have any attempt to create it. I would like to get the suggestion how to get it. The most obvious variant is to create a model with SQL statement such as SELECT * FROM companies` WHERE post LIKE 'qwe'`. But I suppose that there are some joomla abilities to avoid manual creating of the statements.
    – aspirisen
    Commented Aug 30, 2014 at 17:34
  • The only Joomla implementation that I know of would be to have it actually tie into the search component with a search plugin (docs.joomla.org/Creating_a_search_plugin). Otherwise, your best bet is to hook it into your getQuery method in your model. Commented Aug 30, 2014 at 18:36

2 Answers 2


It's very easy to create your own search plugin as is fully documented at Creating a search plugin.


That sounds like a feature of Component Creator: the search plugin. http://component-creator.com/en/forum/announcements/35-database-updater-frontend-search-plugin

Hope that helps.

  • 5
    Hi @AndrésMaeso and welcome to JSE. Please consider improving your answer with more details. As it stands right now, it provides little information AND seems more like self-promotion. Thanks for understanding. Commented Nov 1, 2014 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.