• Resolved NetzzJD

    (@netzzjd)


    I am searching “wildflower” and getting 0 results on the frontend with 105 results on the backend/Admin. But “wildflowers” (plural with a trailing “s”) shows 62 results on both frontend and backend/admin perfectly.

    I’ve gone through the Debugging Relevanssi Searching Issues steps with Query Monitor and see no significant differences or issues. The SQL statement is exactly the same between the searches just with and without the “s” trailing. I’ve checked the Debugging tab in Relevanssi Settings and “wildflower” and “wildflowers” are both within the indexed text.

    An interesting thing is other words, singular and plural, do appear correctly in frontend and admin just fine. For example, “coupon” and “coupons” or “trumpet” and “trumpets” show results as expected. But other compound words do not like, “dogwood(s)”, “butterfly(ies)” or their words separately like “wild”, “flower”, “wood”, “fly”, etc. do not show any results.

    What am I missing?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mikko Saari

    (@msaari)

    When you say “backend/Admin”, do you mean the default WP admin search or the Relevanssi admin search (Dashboard > Admin search)?

    What’s your “Keyword matching” setting? Try setting it to “Partial words”, if it isn’t already.

    Thread Starter NetzzJD

    (@netzzjd)

    By “backend/admin” I mean the Relevanssi admin search (Dashboard > Admin search).

    My Keyword Matching setting is on “Partial words”. And I have added/enabled the Inside-word/fuzzy matching via the Help panel code within my functions.php to see if that helped, but it doesn’t. It’s just odd that some words, singular and plural, appear fine, but others have zero results despite the admin search finding them all. The only notable difference is they seem to only be compound words that have the problem.

    Plugin Author Mikko Saari

    (@msaari)

    Whether they are compound words should not make a difference; Relevanssi doesn’t know anything about language. Since the admin search works fine, the problem doesn’t seem to be in Relevanssi.

    When you look at the Query Monitor output, do you see the number of rows returned (that isn’t always available)? Is it zero for the searches that return no results?

    If you try another theme, does the problem remain?

    Thread Starter NetzzJD

    (@netzzjd)

    Query Monitor does not show Rows/Results as our hosting disables symlinks. Although looking at the Query Monitor Caller list for the main search, it shows this:

    relevanssi_search
    relevanssi_do_query
    FacetWP_Relevanssi->run_query
    FacetWP_Relevanssi->is_main_query
    apply_filters(‘facetwp_is_main_query’)
    FacetWP_Request->is_main_query
    FacetWP_Request->update_query_vars

    do_action_ref_array(‘pre_get_posts’)
    WP_Query->get_posts
    WP_Query->query
    WP->query_posts
    WP->main

    We do use FacetWP for a subset of our content and it has a search box within its page using the Relevanssi Integration plugin. This seems to be the issue. When I disable FacetWP, the main website search does show the proper results on the frontend, showing these Callers instead:

    relevanssi_search
    relevanssi_do_query
    relevanssi_query
    apply_filters_ref_array(‘posts_pre_query’)
    WP_Query->get_posts
    WP_Query->query
    WP->query_posts
    WP->main

    Next question though, is how do I keep both the Relevanssi sitewide WordPress search and FacetWP custom post type searches both active without interfering with each other?

    Thread Starter NetzzJD

    (@netzzjd)

    This was solved with the code here:
    https://www.relevanssi.com/knowledge-base/facetwp

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plural Searches Only Work for Some Words’ is closed to new replies.