• http://dev.fresnohousing.org Doug

    Hello,

    I would very much like to use your plugin but for some reason it will not find pages titled “FAQ”. I have quite a few pages with FAQ in the title and I can’t figure out how to get those pages to appear in the search. These pages do use a shortcode and I clicked the box to inflate the shortcode but still nothing. Any help would be much appreciated.

    Thanks.

    Doug

    • http://www.mikkosaari.fi/ Mikko Saari

      Doug, have you set Relevanssi to actually index pages? Is “FAQ” perhaps a stopword?

  • http://dev.fresnohousing.org Doug

    FAQ is not a stop word and as far as I can tell it is set to index pages (I am not using posts within the site only pages). Here is a link to a screenshot of my settings:

    http://dev.fresnohousing.org/wp-content/uploads/2012/09/Relevanssi.png

    Any suggestions would be much appreciated.

    Doug

  • http://www.mikkosaari.fi/ Mikko Saari

    Nothing obvious that comes to mind. Hard to say what’s wrong, without taking a closer look at your site.

  • lizard

    How do I insert a search box into a page?

    • http://www.mikkosaari.fi/ Mikko Saari

      Copy the default search box HTML code to the page.

      • Frank van Gilluwe

        Where do you get the default search box HTML code? Existing search box from WordPress doesn’t seem to do anything differently (after Relevanssi install and indexed). Can’t find anything about the html code in the user manual, which seems like a critical step to document and explain.

        • http://www.mikkosaari.fi/ Mikko Saari

          Well, every WordPress installation I’ve seen so far has a default widget called “Search”, which produces a default search form that works perfectly with Relevanssi.

          • seishindocbtp

            This was a bit hard from me to understand as well. So your plugin enhances the default Search widget? I was looking all over the setting for a place that would say how to show your specific search box. Just a suggestion…make this a bit more obvious. “Relevanssii enhances the default WP search widget. All you need to do is install our plugin and you then use the Search widget that comes with WP.” Something like that.

            Thanks for such a nice plugin, though!

  • Frank van Gilluwe

    Is there a reason you don’t use search on this site? Seems strange to sell a Search product, then not use it yourself.

    • http://www.mikkosaari.fi/ Mikko Saari

      Relevanssi.com does use Relevanssi for search, but looks like when I updated the theme, the search form disappeared somewhere. Since I don’t need it myself, I haven’t noticed before. Thanks for the notice, the search is now available (and of course uses Relevanssi Premium).

      • tom

        Is there any way you could possibly provide a working example of a search results page which works with this plugin? To have a site which uses get_posts() or new WP_Query() but doesn’t work with this plugin is fine… if you could provide what DOES work in its place. Big thanks.

        • http://www.mikkosaari.fi/ Mikko Saari

          All WP default themes work just fine with Relevanssi. See what they are doing.

          There’s no general solution to this, the correct answer depends on the site. If you can post your search results template in a pastebin somewhere, I can give some hints on how to fix it.

          • tom

            Most impressed by your fast response. About 10 seconds ago, I went into the WP 2012 theme and pulled search.php to see what it’s doing. It actually produced results(!) but I am not sure how Relevanssi is involved yet or how to make it work for us with the “fuzzy logic” we need. It’s still too early but I will definitely look closer at it and play with it and read more about it. I am just happy to get some results! I will try not to bother you unless I really need help! Thank you for your effort!

          • http://www.mikkosaari.fi/ Mikko Saari

            The thing is, Relevanssi replaces the first posts loop on the search results page. The problems begin, if the template doesn’t use the original posts loop provided by WP, but instead makes another query (with get_posts() or new WP_Query()) – Relevanssi doesn’t get involved in that second loop.

          • tom

            I see. (and again big thanks for your reply! this is very urgent for me)

            I have my search results page now giving suggestions. This is great! However…. What I need to do is display them BY POST TYPE. We want to keep our search results exactly as they are using query_posts()…. but want to use Relevanssi to GUESS “what did you mean?” and offer alternate suggestions if they spelled something wrong. (for example)

            Is there any way to keep our existing search results and use relevanssi to offer a additional suggestions?

          • http://www.mikkosaari.fi/ Mikko Saari

            As I don’t have a clue how your search results are right now, I can’t tell you how to do that with Relevanssi. Filtering results by post type is simple, and having “Did you mean” suggestions is a matter of adding the one function call – but what else do you need? I don’t understand that.

          • tom

            Of course. I will explain in a reply to your email. Very grateful for your attention on the matter. Thank you.

          • tom

            Hi Mikko. Is there anything you can do to suggest how it’s possible to get the Google -style “did you mean?” alternative suggestion? Your plugin page says the plugin can do this, but I cannot generate this no matter what I try. Do you have an example search results page which will output some proper results. I get a loop of 10 results (at most) but no suggestions if I spell something wrong. Please assist. I would be most grateful.

          • http://www.mikkosaari.fi/ Mikko Saari

            Tom, Premium does what you want. The free version has the feature as well, but it’s based on earlier user searches and won’t work until there are enough logs gathered. Premium has a better version, directly based on your database.

            For installing instructions, see “Did you mean” suggestions.

          • tom

            Hey! Thanks for your reply. OK purchased premium and looks to be cool. Replying to your email.

          • tom

            Ideally I want someone to search for (example) “Ferrr”… and be able to say “did you mean FERRARI?. That’s the goal.

  • L0cutus

    is possible to find every Author’s post ?
    does exist a function to receive only the number of result found by the search ?

    Thanks !

  • Kenn Nielsen

    Hi Mikko,
    I want Relevanssi to search pages, but I want to exclude some. E.g. page such as privacy policy, terms of sales etc. – Is it not possible to exclude such pages in some way?
    I have tried several solutions, but nothing do the trick.
    Thank you in advance!

    • Kenn Nielsen

      Hah! Got it :)

      “Exclude these posts/pages from search:

      Enter a comma-separated list of post/page IDs that are excluded from search results. This only works here, you can’t use the input field option (WordPress doesn’t pass custom parameters there). ”

      Thank you! :)

  • Nicolas Cusson

    Is there any issues with relevanssi_do_query()? I am able to use relevanssi in the global search, but when i use relevanssi_do_query() for an AJAX call it, returns ‘Internal Server Error’

    • http://www.mikkosaari.fi/ Mikko Saari

      No, nothing that I know of. Can you figure out what the actual error is?

      • Nicolas Cusson

        No, I haven’t found a solution yet. Sorry for the delay, we had to temporarily deactivate Relevanssi to meet the dead lines. I will need to reinvestigate the issue. However, I will have to do a couple updates first, maybe it will be enough. From what I remembered, the error was not really explicit, the only thing i could see in the console was ‘Internal Server Error’, but again, I will come back with more information tomorrow. Thanks for you support!

  • ian1234

    when I try to use it it just goes to this page – http://www.example.com/?s=

    what is going on please, why does it not search my site?

    • http://www.mikkosaari.fi/ Mikko Saari

      Please be more specific. Try to use how? Looks like a problem with your search form, if the search term (?s=) is empty.

  • Andrei

    Hello and kudos on your work. I am not sure if this has been covered but I did try to find an answer with no results.

    I am using a custom theme that has its own search system, and it seems to be different than the default WP search since the coding is different. The form id is set to a different class and the input class is different as well.

    Question is: does your plugin improve any currently used search or only with the default WP search?

    • http://www.mikkosaari.fi/ Mikko Saari

      The form ID doesn’t matter – the only thing that matters is the “action” in the form tag and that the search term input field is called “s”. If those match the default search, Relevanssi doesn’t mind anything else.

  • Ali C

    How would I go about adding the function for automatically filling in the search as the user types, such as the user has typed “Brent C” and then automatically “Brent Cross Shopping Centre” is filled in similar to the way Google search does it? Only I would create a catalogue of these guesses. Can you advise? Is this in the free or premium version?

    • http://www.mikkosaari.fi/ Mikko Saari

      Ali, Relevanssi doesn’t have a function like this. It requires AJAX programming, but that’s all the advise I can give.

  • Pentti Stenman

    Is it possible to make Relevanssi to search from only one Media Category (pdf)?

    • http://www.mikkosaari.fi/ Mikko Saari

      Yes. Relevanssi won’t search inside the PDF files, though, but it’s easy to limit the attachment search to just one media type. I’ve done that before: it’s couple of lines of code.