Tagged: 

Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #787820

    Hi Team,
    your nice search don’t find any kewords that we have in our portfolio items?
    What is wrong?

    Thank you and regards
    Mike

    #787824

    e.g. http://tanja.aix-dev.de/ and search for DUOSOFT
    This Keyword is added to one portfolio item:keywords

    #788893

    Hi,

    You can try enable a plugin like ” Search Everything ” which will help with the issue.
    The problem is not on our theme, it is how WordPress Search is working.

    We appreciate your understanding

    Best regards,
    Basilis

    #789601

    Hi Basilis,
    I have instaled ” Search Everything ” and it works *not* with your Ajax Search
    but the normal searchscreen will find the keyword (see Screenshot).
    search

    #790044

    Hi,

    Please try the Relevanssi or the SearchWP plugin then integrate it with the theme by using the following filters.

    // http://kriesi.at/documentation/enfold/use-searchwp-instead-of-the-standard-search/
    // http://kriesi.at/documentation/enfold/use-relevanssi-in-search-instead-of-the-default-search/

    Or remove the default ajax search feature then use this plugin.

    // https://ajaxsearchpro.com/

    Best regards,
    Ismael

    #791045

    Hi Ismael,

    thanky you, Relevanssi work with your filters and Ajax Seach find tags :)

    Best regards
    Mike

    #791049

    … but yet tehere is an other problem :(
    The result popup of ajax search is to long, longer than screen and show because that no mor the link
    to all results.
    search

    #791610

    Hi,

    Please use the following filter to limit the search results.

    add_filter('avf_ajax_search_query', 'avf_modify_ajax_search_query', 10, 1);
    function avf_modify_ajax_search_query($search_parameters)
    {
        parse_str($search_parameters, $params);
        $params['numberposts'] = 5;
        $search_parameters = http_build_query($params);
        return $search_parameters;
    }

    Best regards,
    Ismael

    #791633

    Hi Ismael,

    thank you but this don’t work – same result
    Maybe because we use Rlevanssi after you recommend this for us?

    Best Regards
    Mike

    #792015

    Hi,

    I see. Please remove the modification then replace the relevanssi filter with the following.

    add_filter('avf_ajax_search_function', 'avia_init_relevanssi', 10, 4);
    function avia_init_relevanssi($function_name, $search_query, $search_parameters, $defaults)
    {
        $function_name = 'avia_relevanssi_search';
        return $function_name;
    }
    
    function avia_relevanssi_search($search_query, $search_parameters, $defaults)
    {
        global $query;
        $tempquery = $query;
        if(empty($tempquery)) $tempquery = new WP_Query();
        $tempquery->query_vars = $search_parameters;
        relevanssi_do_query($tempquery);
        $posts = array_slice($tempquery->posts, 0, 5);
    
        return $posts;
    }

    Best regards,
    Ismael

    #792176

    Hi Ismael,

    sorry, but with this code ajax seach find nothing.

    Best regards
    Mike

    #792473

    Hi,

    We modified the code above. Please try it again.

    Best regards,
    Ismael

    #793213

    Hi,
    this code find the searchterm but we have the old problem that
    the result popup of ajax search is to long, longer than screen.
    Best Regards
    Mike

    #794602

    Hi,

    I thought it would work. Anyway, I searched for old threads and there seems to be no way to limit the ajax search results when using the plugin. Please refer to this link for a possible workaround.

    // https://kriesi.at/support/topic/limit-ajax-search-results-with-relevanssi/#post-404320

    Best regards,
    Ismael

    #794691

    Hi,

    I thought it would work. Anyway,

    This would be great. Maybe it is an nice idea you try it out for you self on my server,
    you have all data you need?!

    Regards
    Mike

    #795318

    Hi,

    you self on my server,
    you have all data you need?!

    I’m sorry but I don’t have that info. Please post it in the private field.

    Best regards,
    Ismael

    #795703

    Oh, I think you got it…

    #796576

    Hi,

    I tried to login to the site but I got the following notice.

    The site ahead contains malware

    Attackers currently on http://www.mueller-arbeitsschutz.de might attempt to install dangerous programs on your computer that steal or delete your information (for example, photos, passwords, messages, and credit cards).

    Automatically report details of possible security incidents to Google. Privacy policy

    Best regards,
    Ismael

    #796595

    Hi Ismael,
    sorry this was the old homepage, we move to an other provider with this domain.
    Maybe you can try 2 days later, when google move the attacks warning.
    I am on holliday for the next 14 days :) – read you later – hope so!

    Best regards
    Mike

    #797028

    Hi,

    Alright. I’ll check it again after two days. Enjoy your holidays! :)

    Best regards,
    Ismael

    #797035

    Hi Ismael,

    thank you :)
    Google no more block this page since today – all is fine you can start.
    Read you later…

    Best regards
    Mike

    #797356

    Hi,

    We limited the search result to 5 items. Please remove browser cache or hard refresh before checking the page.

    Best regards,
    Ismael

    #804494

    Hi Ismael,

    I am back from holidays, thank you for your solution and your great support, this works fine :)
    Were you are limited the search result to 5 items, tell me file and line please, that will be nice :)

    Best regards
    Mike

    #804770

    Hi,

    Welcome back! It’s in the functions.php file, just look for the array_slice function.

    Best regards,
    Ismael

Viewing 24 posts - 1 through 24 (of 24 total)
  • The topic ‘Ajax search don't find keywords?’ is closed to new replies.