• Resolved tdoccc

    (@tdoccc)


    Hi

    My website is set up so that typing in a search term only looks through post_titles – so that if I search for “box” it will automatically show the “box” page.

    I also have it so that if the term is not found, it will auto add the page to the website.

    I’m having an issue with these two factors. Say I have “monster munch” as a page – it is possible to search for this just fine. However, if I search for “munch”, it will bring up the “monster munch” page… when really I want it to bring up a “term not found” and add the “munch” page…

    Is it possible to make the term match post_title EXACTLY.. yet also take the stopwords I have set up into account?

    https://www.ads-software.com/plugins/relevanssi/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter tdoccc

    (@tdoccc)

    Just FYI, I have AND as default operator with no OR fallback, Relevance as results order, no fuzzy search, limit searches off, post titles with a weight of 1. I am searching a custom post type only.

    Thread Starter tdoccc

    (@tdoccc)

    Also I’ve tried the “add quotes to search” function but this doesn’t work and also messes with the title on upload.

    If it’s possible to just check if post_title == search query then that’d be great. I want to retain Relevanssi’s use of stopwords (I had trouble implementing these manually)

    Plugin Author Mikko Saari

    (@msaari)

    Sounds like you’re probably better off without Relevanssi, really. You don’t really need all the power of Relevanssi, when you just need one function that matches post titles to search terms. If you did that with Relevanssi, you’d be pretty much bypassing all Relevanssi functionality –?so better to just remove Relevanssi from the equation.

    Thread Starter tdoccc

    (@tdoccc)

    That’s fair enough to be honest.

    Would it be possible to push us in the right direction in regards to implementing Stopwords in default WP search? Could not find any other info on the web :\

    Plugin Author Mikko Saari

    (@msaari)

    The current WordPress default search includes stopwords, but I’m not sure how it actually works and whether you can add new stopwords.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘100% exact post_title search possible through any of the filter hooks?’ is closed to new replies.