Title: Optimizing Events Manager Search Algorithm
Last modified: November 13, 2017

---

# Optimizing Events Manager Search Algorithm

 *  Resolved [three17design](https://wordpress.org/support/users/three17design/)
 * (@three17design)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/optimizing-events-manager-search-algorithm/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foptimizing-events-manager-search-algorithm%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [jordanthedesigner](https://wordpress.org/support/users/jordanthedesigner/)
 * (@jordanthedesigner)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/optimizing-events-manager-search-algorithm/#post-9679303)
 * 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?
 *  Thread Starter [three17design](https://wordpress.org/support/users/three17design/)
 * (@three17design)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/optimizing-events-manager-search-algorithm/#post-9682823)
 * 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.
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/optimizing-events-manager-search-algorithm/#post-9686495)
 * 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
 *  Thread Starter [three17design](https://wordpress.org/support/users/three17design/)
 * (@three17design)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/optimizing-events-manager-search-algorithm/#post-9686678)
 * Thanks so much for the info.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/optimizing-events-manager-search-algorithm/#post-9688559)
 * [@three17design](https://wordpress.org/support/users/three17design/) check this
   tutorial out (recently rewritten/revamped):
 * [http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/](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)

The topic ‘Optimizing Events Manager Search Algorithm’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/optimizing-events-manager-search-algorithm/#post-9688559)
 * Status: resolved