Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter reina1234

    (@reina1234)

    Minimum word length was the problem! After I changed it to 2 characters, the search started to work. Thank you for your patience! I couldn’t even think that searching for less than 3 characters would cause a problem… Thanks a lot for pointing out!

    Thread Starter reina1234

    (@reina1234)

    Sorry for pasting the screenshot. Sure it’s not very helpful.
    I’ve tried the filter you provided. This time the whole website did not go down, and after pressing the search button in the search form I got the following output:

    object(WP_Query)#1036 (49) { ["query"]=> array(1) { ["s"]=> string(6) "大阪" } ["query_vars"]=> &array(66) { ["s"]=> string(6) "大阪" ["error"]=> string(0) "" ["m"]=> string(0) "" ["p"]=> int(0) ["post_parent"]=> string(0) "" ["subpost"]=> string(0) "" ["subpost_id"]=> string(0) "" ["attachment"]=> string(0) "" ["attachment_id"]=> int(0) ["name"]=> string(0) "" ["pagename"]=> string(0) "" ["page_id"]=> int(0) ["second"]=> string(0) "" ["minute"]=> string(0) "" ["hour"]=> string(0) "" ["day"]=> int(0) ["monthnum"]=> int(0) ["year"]=> int(0) ["w"]=> int(0) ["category_name"]=> string(0) "" ["tag"]=> string(0) "" ["cat"]=> string(0) "" ["tag_id"]=> string(0) "" ["author"]=> string(0) "" ["author_name"]=> string(0) "" ["feed"]=> string(0) "" ["tb"]=> string(0) "" ["paged"]=> int(0) ["meta_key"]=> string(0) "" ["meta_value"]=> string(0) "" ["preview"]=> string(0) "" ["sentence"]=> string(0) "" ["title"]=> string(0) "" ["fields"]=> string(0) "" ["menu_order"]=> string(0) "" ["embed"]=> string(0) "" ["category__in"]=> array(0) { } ["category__not_in"]=> array(0) { } ["category__and"]=> array(0) { } ["post__in"]=> array(0) { } ["post__not_in"]=> array(0) { } ["post_name__in"]=> array(0) { } ["tag__in"]=> array(0) { } ["tag__not_in"]=> array(0) { } ["tag__and"]=> array(0) { } ["tag_slug__in"]=> array(0) { } ["tag_slug__and"]=> array(0) { } ["post_parent__in"]=> array(0) { } ["post_parent__not_in"]=> array(0) { } ["author__in"]=> array(0) { } ["author__not_in"]=> array(0) { } ["ignore_sticky_posts"]=> bool(false) ["suppress_filters"]=> bool(false) ["cache_results"]=> bool(true) ["update_post_term_cache"]=> bool(true) ["lazy_load_term_meta"]=> bool(true) ["update_post_meta_cache"]=> bool(true) ["post_type"]=> string(3) "any" ["posts_per_page"]=> int(10) ["nopaging"]=> bool(false) ["comments_per_page"]=> string(2) "50" ["no_found_rows"]=> bool(false) ["search_terms_count"]=> int(1) ["search_terms"]=> array(1) { [0]=> string(6) "大阪" } ["search_orderby_title"]=> array(1) { [0]=> string(165) "wp_posts.post_title LIKE '{8adf746055b3e375dab241e61be93ead748e113e53305dee057a6b8ad873516a}大阪{8adf746055b3e375dab241e61be93ead748e113e53305dee057a6b8ad873516a}'" } ["order"]=> string(4) "DESC" } ["tax_query"]=> object(WP_Tax_Query)#2107 (6) { ["queries"]=> array(0) { } ["relation"]=> string(3) "AND" ["table_aliases":protected]=> array(0) { } ["queried_terms"]=> array(0) { } ["primary_table"]=> string(8) "wp_posts" ["primary_id_column"]=> string(2) "ID" } ["meta_query"]=> object(WP_Meta_Query)#2117 (9) { ["queries"]=> array(0) { } ["relation"]=> NULL ["meta_table"]=> NULL ["meta_id_column"]=> NULL ["primary_table"]=> NULL ["primary_id_column"]=> NULL ["table_aliases":protected]=> array(0) { } ["clauses":protected]=> array(0) { } ["has_or_relation":protected]=> bool(false) } ["date_query"]=> bool(false) ["request"]=> string(32) "SELECT * FROM wp_posts WHERE 1=2" ["post_count"]=> int(0) ["current_post"]=> int(-1) ["in_the_loop"]=> bool(false) ["comment_count"]=> int(0) ["current_comment"]=> int(-1) ["found_posts"]=> int(0) ["max_num_pages"]=> int(0) ["max_num_comment_pages"]=> int(0) ["is_single"]=> bool(false) ["is_preview"]=> bool(false) ["is_page"]=> bool(false) ["is_archive"]=> bool(false) ["is_date"]=> bool(false) ["is_year"]=> bool(false) ["is_month"]=> bool(false) ["is_day"]=> bool(false) ["is_time"]=> bool(false) ["is_author"]=> bool(false) ["is_category"]=> bool(false) ["is_tag"]=> bool(false) ["is_tax"]=> bool(false) ["is_search"]=> bool(true) ["is_feed"]=> bool(false) ["is_comment_feed"]=> bool(false) ["is_trackback"]=> bool(false) ["is_home"]=> bool(false) ["is_privacy_policy"]=> bool(false) ["is_404"]=> bool(false) ["is_embed"]=> bool(false) ["is_paged"]=> bool(false) ["is_admin"]=> bool(false) ["is_attachment"]=> bool(false) ["is_singular"]=> bool(false) ["is_robots"]=> bool(false) ["is_favicon"]=> bool(false) ["is_posts_page"]=> bool(false) ["is_post_type_archive"]=> bool(false) ["query_vars_hash":"WP_Query":private]=> string(32) "a397c0ae662e6cfd7e2aa6388bdf0e34" ["query_vars_changed":"WP_Query":private]=> bool(false) ["thumbnails_cached"]=> bool(false) ["stopwords":"WP_Query":private]=> array(29) { [0]=> string(5) "about" [1]=> string(2) "an" [2]=> string(3) "are" [3]=> string(2) "as" [4]=> string(2) "at" [5]=> string(2) "be" [6]=> string(2) "by" [7]=> string(3) "com" [8]=> string(3) "for" [9]=> string(4) "from" [10]=> string(3) "how" [11]=> string(2) "in" [12]=> string(2) "is" [13]=> string(2) "it" [14]=> string(2) "of" [15]=> string(2) "on" [16]=> string(2) "or" [17]=> string(4) "that" [18]=> string(3) "the" [19]=> string(4) "this" [20]=> string(2) "to" [21]=> string(3) "was" [22]=> string(4) "what" [23]=> string(4) "when" [24]=> string(5) "where" [25]=> string(3) "who" [26]=> string(4) "will" [27]=> string(4) "with" [28]=> string(3) "www" } ["compat_fields":"WP_Query":private]=> array(2) { [0]=> string(15) "query_vars_hash" [1]=> string(18) "query_vars_changed" } ["compat_methods":"WP_Query":private]=> array(2) { [0]=> string(16) "init_query_flags" [1]=> string(15) "parse_tax_query" } }

    Thread Starter reina1234

    (@reina1234)

    Thank you for your reply.
    If I apply the filter you provided, my website goes down and the dump screen appears.
    Please check this screenshot. Can you see where the problem is?

    Thread Starter reina1234

    (@reina1234)

    Hi Mikko,

    Thanks for your quick reply.
    Oh, I see. Japanese language is quite troublesome when it comes to searching.
    Though I guess Relevanssi will be able to perform better than original WP search, after tuning synonyms and stopwords. Sure I will give it a try.
    Yes, I’ve tried Relevanssi Admin search in Dashboard > Admin search. It didn’t show any results for my search, too.
    I’ve added the filter that you kindly provided to functions.php, but still wasn’t able to see queries from relevanssi_search caller. get_option(‘relevanssi_trim_logs’) appeared instead of relevanssi_update_log(), though.
    I don’t get what is blocking Relevanssi from making the queries. Please let me know if you have any idea.
    Thanks a lot in advance,
    Reina

Viewing 4 replies - 1 through 4 (of 4 total)