• Resolved divijc

    (@divijc)


    I have added only product title and category in active sources but the aws index table is still adding rows for description under term source “content”. How to disable indexing for this?

Viewing 1 replies (of 1 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    By default plugin indexed all sources and inside settings page you only choose what sources from all of them must be available for search.

    But if you want to exclude from index all sources exсept title and categories please use following code

    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' ) !== false || strpos( $source, 'category' ) !== false ) {
                $new_terms[$source] = $all_terms;
            }
        }
        $data['terms'] = $new_terms;
        return $data;
    }

    also you will need to re-index table after adding this code.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Description removed from active sources but still getting indexed’ is closed to new replies.