monogo/magento-typesense-catalog-products

Typesense Catalog Products indexer Magento implementation

1.0.0 2023-08-25 12:51 UTC

This package is auto-updated.

Last update: 2024-04-20 13:57:15 UTC


README

Indexer for Magento Catalog Products

Configuration

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

Indexers

Indexer Description
bin/magento indexer:reindex typesense_products Typesense Products indexer. To enable this, configure
Stores → Configuration →Typesense → Catalog Products

Initial schema

'name' => $prefix . '_products' . $suffix,
'fields' => [
            'entity_id' => ['name' => 'entity_id', 'type' => 'int32', 'optional' => false, 'index' => true],
            'uid' => ['name' => 'uid', 'type' => 'string', 'optional' => false, 'index' => true],
            'sku' => ['name' => 'sku', 'type' => 'string', 'optional' => false, 'index' => true],
            'store_id' => ['name' => 'store_id', 'type' => 'int32', 'optional' => true, 'index' => false],
            'status' => ['name' => 'status', 'type' => 'int32', 'optional' => true, 'index' => false],
            'visibility' => ['name' => 'visibility', 'type' => 'int32', 'optional' => true, 'index' => false],
            'visibility_label' => ['name' => 'visibility_label', 'type' => 'string', 'optional' => true, 'index' => false],
            'name' => ['name' => 'name', 'type' => 'string', 'optional' => false, 'index' => true],
            'url' => ['name' => 'url', 'type' => 'string', 'optional' => false, 'index' => true],
            'url_key' => ['name' => 'url_key', 'type' => 'string', 'optional' => false, 'index' => true],
            'type_id' => ['name' => 'type_id', 'type' => 'string', 'optional' => true, 'index' => false,],
            'subproducts' => ['name' => 'subproducts', 'type' => 'string[]', 'optional' => true, 'index' => false,],
            'parent_ids' => ['name' => 'parent_ids', 'type' => 'string[]', 'optional' => true, 'index' => false,],
            'description' => ['name' => 'description', 'type' => 'string', 'optional' => true, 'index' => false],
            'description_stripped' => ['name' => 'description_stripped', 'type' => 'string', 'optional' => true, 'index' => true],
            'short_description' => ['name' => 'short_description', 'type' => 'string', 'optional' => true, 'index' => false],
            'short_description_stripped' => ['name' => 'short_description_stripped', 'type' => 'string', 'optional' => true, 'index' => true],
            'meta_title' => ['name' => 'meta_title', 'type' => 'string', 'optional' => true, 'index' => true],
            'meta_keywords' => ['name' => 'meta_keywords', 'type' => 'string', 'optional' => true, 'index' => true],
            'meta_description' => ['name' => 'meta_description', 'type' => 'string', 'optional' => true, 'index' => true],
            'category_ids' => ['name' => 'category_ids', 'type' => 'string[]', 'optional' => true, 'index' => true],
            'category_uid' => ['name' => 'category_uid', 'type' => 'string[]', 'optional' => true, 'index' => true, 'facet' => true],
            'stock_status' => ['name' => 'stock_status', 'type' => 'string', 'optional' => false, 'index' => true, 'facet' => true],
            'related_products_ids' => ['name' => 'related_products_ids', 'type' => 'string[]', 'optional' => true, 'index' => false],
            'upsell_products_ids' => ['name' => 'upsell_products_ids', 'type' => 'string[]', 'optional' => true, 'index' => false],
            'crossell_products_ids' => ['name' => 'crossell_products_ids', 'type' => 'string[]', 'optional' => true, 'index' => false],
            'final_price' => ['name' => 'final_price', 'type' => 'float', 'optional' => false, 'index' => true, 'sort' => true],
        ];

Credits