Support » Plugin: WP Custom Fields Search » Incompatibility with Plugin “Relevanssi”

  • Hi,
    i just tested your plugin. In theory it should be perfectly suited for my needs. Thank you! Unfortunately I encountered a problem in combination with another plugin:

    In order to rule out any issues due to complexity I just created a dropdown search on authors. With the search plugin “Relevanssi” enabled I get about a hundred results, which have nothing to do with the intended search. Independently of which autor I choose I always end up with the exact same wrong results. When I disable “Relevanssi” the search for authors works fine.

    Since this is a very popular plugin I guess many people may stumble across this. In addition I saw a report of someone using the plugin “SearchWP” (https://wordpress.org/support/topic/several-issues-36/). Can it be the case that your search fails as soon as someone throws a search plugin in between your plugin and core wordpress? I would be glad if you could have a look into this.

    Thank you for your efforts and kind reagards!

    • This topic was modified 2 years, 4 months ago by mimesot.
    • This topic was modified 2 years, 4 months ago by mimesot.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author don benjamin

    (@dondon-benjamincouk)

    Hi,

    Yes, it could definitely be the case that if you install two plugins each of which replaces the WordPress core search functionality in different ways that they will be unlikely work together.

    I’ve had a quick look at how the plugin interacts with relevansii. It looks like relevansii completely replaces the core search functionality to run from separate indexing tables so it would require this plugins functionality to be rebuilt on a completely different db schema specific to sites using relevansii (assuming they’ve provided the relevant extension hooks).

    This would be a big job, and for some applications of the plugin which use their own custom data structures already this would likely be impossible. So no this isn’t something I’m planning to support.

    I’m considering a possible rewrite to make the plugin more reliant on the WordPress core querying functionality, this would likely mean a loss of functionality, as some of what the plugin currently does could not be implemented that way, it might though make the plugin more compatible with other search plugins. That won’t be for a while though and would still be unlikely to help in this case.

    Thanks,
    Don

    Thread Starter mimesot

    (@mimesot)

    Hi,
    Thank you for your detailed answer! Even though i like relevanssi i am not dead centered on that particular plugin. So, then let’s try to work around this: I use relevanssi because when I set up my website I was told that an immediate replacement of the search engine is a must, because the core search engine does not include custom post types and I especially need to be able to search bbPress replies. Thus following questions arise:

    • Is the wordpress core search engine still as limited as it was back then? I am having troubles finding a review of the core search engine on the internet.
    • Do you have any experience with search-enhancing plugins that work together nicely with your plugin?

    Thank you for your advice and kind regards
    mimesot

    Plugin Author don benjamin

    (@dondon-benjamincouk)

    Hi,

    The WordPress core search engine is still pretty basic. That’s why I built this plugin to customise it in the way I needed.

    I’m not really aware of any plugins which would work nicely with this one and add value. They may be out there though, what functionality is it you’re trying to build?

    If it’s just including custom post types in results you should be able to do that with this plugin alone.

    Thanks,
    Don

    Thread Starter mimesot

    (@mimesot)

    Hi,
    the core problem ist that i can use this plugin in pages and posts to get better search results. But my default search bar stays crappy because it seems to be still using the wordpress core search. I would love the default search bar to be able to search posts, pages and forum topics while still being able to use your pluging for fine granular searches. How can I achieve that?
    Greeting
    mimesot

    Plugin Author don benjamin

    (@dondon-benjamincouk)

    When you say the default search bar, is that configured as a widget? You should be able to replace that with an instance of this plugin’s widget configured to do a similar job.

    If you just added one search field which is a “Text Input” field configured to search “Core Post Field” > “All” with comparison “Contains Text”, this should produce something similar to WordPress core search. (Even better if you enable split words in the “Text Input” settings)

    This would give you a search form similar to the wordpress core search but in the form general settings (the settings icon at the top of the form editor) you can configure which post types will be displayed.

    Thread Starter mimesot

    (@mimesot)

    Jepp, indeed, if iI use your Widget it works flawlessly as intended. Lists all Post Types I need. Cool!

    Regarding my Website. I use the free Theme BoxStyle by Alx and it has a search field integrated with the primary bar (that one which holds the main menu) at the right side.

    See http://demo.alx.media/x/?theme=Boxstyle

    (Note: In order to spice it up I use the ajax powered live search plugin “SearchWP Live Search” which itself utilizes the Core Search funktion or other Searches that replace the core search like Relevanssi or SearchWP. I uninstalled both in order to test your plugin.)

    Is there a way to get that search field to use your technology as a basis? I guess there are many themes out there that come with an integrated search field somewhere.

    Plugin Author don benjamin

    (@dondon-benjamincouk)

    Okay, I see the problem now.

    There’s not at present any way to replace the default WordPress search, you’re right though that this would be useful in some cases and I will schedule this for a future release.

    If I get time, I’ll take another look at the incompatibilities with Relevansii and see if there’s a workaround to let the two play nicely together.

    Sorry, I can’t be of more help

    Thread Starter mimesot

    (@mimesot)

    Hi there,
    well, thats cool. Than I will wait for your future releases with great anticipation. Meanwhile i will leave the core-search as is on the pages for guests who shall generally read posts rahter than anything else and in addition i will place your enhanced search as a widget. My members will get used to having two search bars for different porposes and I will use the Plugin “widget options” to hide the enhanced search from guests. I think i found a feasible workaround and your answers were still of great value to me.
    Thanks and greetings!
    mimesot

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Incompatibility with Plugin “Relevanssi”’ is closed to new replies.