Support » Plugin: Events Manager » Optimizing Events Manager Search Algorithm

  • Resolved three17design

    (@three17design)


    My client would like an optimized search query so that when a user searches for “Super Heros Event”, an event with the title of “Superhero Party” will show up in the results. Currently with Events Manager, this is not the case. I’ve tested with plugins such as “Better WP Search” and the like and it provides a very flexible result. The EM plugin seems to have a very extensive search system of it’s own, and I don’t want to forfeit the ability to search use the “NEAR” parameter with geolocation.

    Is there a setting or a plugin or a recommended modification that I can use to modify the Events Manager Search Algorithm to be more flexible? Any help would be greatly appreciated. Thank you.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support jordanthedesigner

    (@jordanthedesigner)

    Apologies, I would just like a clearer understanding of what you are looking to achieve. Are you just needing to make sure that the search catches all terms and returns the results as opposed to only displaying the EXACT searched text?

    three17design

    (@three17design)

    Yes. You are correct. I want it to show INEXACT search results. So if a user searches for “BLUE PAJAMAS” results will show for both “BLUE” and for “PAJAMAS” and for “BLUE PAJAMAS”. Thank you for any help.

    Plugin Support caimin_nwl

    (@caimin_nwl)

    Sorry, that’s only something that could be done with custom coding. It might be you can create your own search function based on the existing one, which is near the top of this file:

    /events-manager/classes/em-events.php

    Thanks so much for the info.

    Plugin Author Marcus

    (@netweblogic)

    NetWebLogic Support

    @three17design check this tutorial out (recently rewritten/revamped):

    http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/

    In your case, you’d want to change the $conditions[‘search’] SQL condition to be less specific, such as using RLIKE or splitting up the search term.

    I’d be wary of doing it as a standard feature because the more words, the more conditions, and the slower the query.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.