monogo/magento-typesense-catalog-categories

Typesense Catalog Categories indexer Magento implementation

1.0.9 2024-03-20 08:05 UTC

This package is auto-updated.

Last update: 2024-10-20 14:58:17 UTC


README

Indexer for Magento Catalog Categories

Configuration

As the first step, Go to Magento Admin → Configuration → Typesense → Catalog Categories

Indexers

Initial schema

'name' => $prefix . '_categories' . $suffix,
'fields' => [
            ['name' => 'entity_id', 'type' => 'int32', 'optional' => false, 'index' => true],
            ['name' => 'uid', 'type' => 'string', 'optional' => false, 'index' => true],
            ['name' => 'store_id', 'type' => 'int32', 'optional' => false, 'index' => true],
            ['name' => 'name', 'type' => 'string', 'optional' => false, 'index' => true],
            ['name' => 'url', 'type' => 'string', 'optional' => false, 'index' => true],
            ['name' => 'url_key', 'type' => 'string', 'optional' => false, 'index' => true],
            ['name' => 'canonical_url', 'type' => 'string', 'optional' => false, 'index' => true],
            ['name' => 'is_active', 'type' => 'int32', 'optional' => false, 'index' => true, 'facet' => true],
            ['name' => 'is_anchor', 'type' => 'int32', 'optional' => false, 'index' => true, 'facet' => true],
            ['name' => 'include_in_menu', 'type' => 'int32', 'optional' => false, 'index' => true, 'facet' => true],
            ['name' => 'product_count', 'type' => 'int32', 'optional' => false, 'index' => true],
            ['name' => 'categories_path', 'type' => 'string[]', 'optional' => true, 'index' => true],
            ['name' => 'position', 'type' => 'int32', 'optional' => false, 'index' => true],
            ['name' => 'description', 'type' => 'string', 'optional' => true, 'index' => false],
            ['name' => 'description_stripped', 'type' => 'string', 'optional' => true, 'index' => true],
            ['name' => 'meta_title', 'type' => 'string', 'optional' => true, 'index' => true],
            ['name' => 'meta_keywords', 'type' => 'string', 'optional' => true, 'index' => true],
            ['name' => 'meta_description', 'type' => 'string', 'optional' => true, 'index' => true],
            ['name' => 'display_mode', 'type' => 'string', 'optional' => true, 'index' => true, 'facet' => true],
            ['name' => 'landing_page', 'type' => 'string', 'optional' => true, 'index' => false,],
            ['name' => 'landing_page_stripped', 'type' => 'string', 'optional' => true, 'index' => true,],
            ['name' => 'parent_categories', 'type' => 'string[]', 'optional' => true, 'index' => true,],
            ['name' => 'children_categories', 'type' => 'string[]', 'optional' => true, 'index' => true,],
            ['name' => 'breadcrumbs', 'type' => 'object[]', 'optional' => true, 'index' => false,],
        ],
'default_sorting_field' => 'entity_id'

Credits