• Hi, the search is very slow when the products to look for are more than 400 or so. The ajax search on the other hand is very fast. At the moment I am forced to use a second plugin for the search page which is very fast and use yours only for the ajax search. I have already made all the changes that you have recommended to other users such as not including the variants, removing all the fields and taxonomies that I do not want from the index, limiting the results per page but in any case if the search exceeds 350/400 results it also takes dozens seconds to charge.
    I would also like to use your plugin for the search page because I prefer it for functionality and it has compatibility with berocket ajax filter but at the moment it is impossible for me
    These are all the functions enabled:

    function aws_page_results( $num ) {
    return 350; // number added so as not to make the search very slow but in doing so it does not show all the results but always limits to 350
    }

    add_filter(‘aws_posts_per_page’,’aws_posts_per_page’);
    function aws_posts_per_page( $num ) {
    return 48;
    }

    add_filter(‘aws_indexed_data’, ‘my_aws_indexed_data2’);
    function my_aws_indexed_data2( $data ) {
    if ( $data[‘type’] === ‘child’ ) {
    return false;
    }
    return $data;
    }

    add_filter(‘aws_indexed_data’, ‘my_aws_indexed_data’);
    function my_aws_indexed_data( $data ) {
    $new_terms = array();
    foreach ( $data[‘terms’] as $source => $all_terms ) {
    if ( strpos( $source, ‘title’ ) === 0 || strpos( $source, ‘category’ ) === 0
    || strpos( $source, ‘attr_pa_fantasia’ ) === 0 || strpos( $source, ‘attr_pa_materiali’ ) === 0
    || strpos( $source, ‘attr_pa_taglia’ ) === 0 || strpos( $source, ‘attr_pa_altezza-vita’ ) === 0 || strpos( $source, ‘attr_pa_collezione’ ) === 0 || strpos( $source, ‘attr_pa_scollatura’ ) === 0
    || strpos( $source, ‘attr_pa_stile’ ) === 0 || strpos( $source, ‘attr_pa_stile-borsa’ ) === 0 || strpos( $source, ‘attr_pa_stile-capospalla’ ) === 0 || strpos( $source, ‘attr_pa_stile-gonna’ ) === 0
    || strpos( $source, ‘attr_pa_stile-pantaloni’ ) === 0 || strpos( $source, ‘attr_pa_stile-portafoglio’ ) === 0 || strpos( $source, ‘attr_pa_stile-tacco’ ) === 0 || strpos( $source, ‘attr_pa_stile-vestito’ ) === 0
    || strpos( $source, ‘attr_pa_stagione’ ) === 0 || strpos( $source, ‘attr_pa_stile-camicia-blusa’ ) === 0 || strpos( $source, ‘attr_pa_stile-coprispalle’ ) === 0
    || strpos( $source, ‘attr_pa_tipo-chiusura’ ) === 0 || strpos( $source, ‘attr_pa_tipo-costume-da-bagno’ ) === 0 ) {
    $new_terms[$source] = $all_terms;
    }
    }
    $data[‘terms’] = $new_terms;
    return $data;
    }`

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

    (@mihail-barinov)

    Hello,

    Starting form the version 2.23 plugin has new sets of Performance settings that can be changed right from the plugin settings page.

    So for your case I can recommend to set Search rule option to begins value and reindex the table. This can significantly increase search speed.

    Regards

    Thread Starter marketwo

    (@marketwo)

    hi, I tried to change to “begins” but the search remains very slow after a certain number of products. I don’t understand why the search page is so slow while the ajax is very fast. Also with the other plugin I am using for the search page it is very fast even with 1000+ products

    (@marketwo) Hi, Which ‘other plugin’ do you refer to? Also what Ajax search? In description of Advanced Woo Search it is also mentioned that it uses Ajax.

    Thank you

    Thread Starter marketwo

    (@marketwo)

    I use advanced woo search for the ajax search while ivory search for the search page. I would like to use advanced woo search for both so as to have only one plugin and because advanced woo search has better compatibility with other plugins such as berocket ajax filter but due to the slowness of the search page it is impossible for me.

    Thank you very much for your quick answer. I also installed Ivory Search (the Starter with Basic Options). I will see how it performs when all the items of the site are ready.
    It will be a site selling audio tracks, therefore the number exceeds the 400, which seems to be an issue with Advanced Woo Search.

    I do not know who the indexing functions with these plugins though.

    I am new at WordPress, what I remember from a webdesign course I had more than 15 years ago, when we had to work with PHO and SQL, it is that we had to prepare tables for each category of the products/items and these tables were used by PHP engine to write the dynamic pages when a Search was performed for a certain item/category.

    I wonder whether is this also required for these WP plugins to work in order to index the items of the site for a Search engine.

    How do these plugins perform the indexing process? From the titles of the products? It would be to easy I think. Maybe the SQL tables are still necessary, I do not know.
    Thank you very much for your time.
    Dana

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search page is very slow with more 400 products’ is closed to new replies.