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

    (@msaari)

    Are the indexing settings equal on both sites? Doesn’t seem like a post type restriction issue, because if it were, this would find results: https://216teens.org/?s=ovary&post_types=glossary

    So the first thing I’d check is the index: is the glossary post type properly indexed on the production site?

    Thread Starter neeraj27

    (@neeraj27)

    yes it is properly indexed

    Polylang plugin is installed in live site

    is it responsible for this issue?

    public static function termsearch_filter ( $query ) {

    if ( !is_admin() && $query->is_main_query() ) {
    if ( t216_glossary::is_glossary_search() ) {
    $query->set( ‘search_type’, array( ‘glossary’ ) );
    $query->set( ‘post_type’, array( ‘glossary’ ) );
    }
    }
    }

    add_action( ‘pre_get_posts’, array( ‘t216_glossary’, ‘termsearch_filter’ ) );

    But still not working

    • This reply was modified 5 years, 8 months ago by neeraj27.
    Plugin Author Mikko Saari

    (@msaari)

    Polylang should not be an issue, but you can try flicking the Polylang switch in Relevanssi settings to see if that helps.

    If you do the first step here: https://www.relevanssi.com/knowledge-base/debugging-relevanssi-searching-issues/ what kind of results you get? And what kind of results you get on the dev site? Is there a difference?

    Thread Starter neeraj27

    (@neeraj27)

    [“taxonomy”]=> string(8) “language” [“term_id”]=> int(38) [“order”]=> string(4) “DESC” }

    above parameter showing in live site not dev site

    Plugin Author Mikko Saari

    (@msaari)

    That’s Polylang. Do the glossary terms have a language? If they don’t, and Polylang filtering is in use, then they might not show up. Have you tried allowing posts from all languages in Relevanssi settings? Does that help?

    Thread Starter neeraj27

    (@neeraj27)

    after selecting polylang setting post from all languages
    it works on search page https://216teens.org/?s=ovary
    but ajax search input with wp suggest search plugin still showing 1 results only

    • This reply was modified 5 years, 8 months ago by neeraj27.
    Plugin Author Mikko Saari

    (@msaari)

    Is WP Search Suggest the plugin you’re using? It does not support Relevanssi, but can be modified to do so.

    The ajax search does seem to work for me, though, looks like it’s returning glossary terms as well.

    SearchWP Live Ajax Search works with Relevanssi.

    Thread Starter neeraj27

    (@neeraj27)

    Because i have put post_type=> glossary inside code file of wp suggest search

    I have installed SearchWP Live Ajax Search but it still have same issue like suggest search plugin had only showing post from page not glossary term.

    Plugin Author Mikko Saari

    (@msaari)

    Hmm, SearchWP Live Ajax Search should not have any problems with different post types; it does have problems with different post statuses, but that’s not what’s going on in here.

    Here’s a screenshot of how the Ajax search works for me now. Looks fine to me.

    • This reply was modified 5 years, 8 months ago by Mikko Saari.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘CPT is not searcable in Search’ is closed to new replies.