Skip to content

MonogoPolska/magento-typesense-cms-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typesense Magento integration - CMS Pages indexer

Indexer for Magento CMS Pages

Configuration

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

Indexers

Indexer Description
bin/magento indexer:reindex typesense_cms_pages Typesense CMS Pages indexer. To enable this, configure
Stores → Configuration →Typesense → CMS Pages

Initial schema

'name' => $prefix . '_cms_pages' . $suffix,
'fields' => [
    ['name' => 'page_id', 'type' => 'int32', 'optional' => false, 'index' => true],
    ['name' => 'identifier', 'type' => 'string', 'optional' => false, 'index' => true],
    ['name' => 'title', 'type' => 'string', 'optional' => false, 'index' => true],
    ['name' => 'meta_keywords', 'type' => 'string', 'optional' => true, 'index' => false],
    ['name' => 'meta_description', 'type' => 'string', 'optional' => true, 'index' => false],
    ['name' => 'meta_title', 'type' => 'string', 'optional' => true, 'index' => false],
    ['name' => 'page_layout', 'type' => 'string', 'optional' => true, 'index' => false],
    ['name' => 'content_heading', 'type' => 'string', 'optional' => true, 'index' => true],
    ['name' => 'content', 'type' => 'string', 'optional' => true, 'index' => false],
    ['name' => 'content_stripped', 'type' => 'string', 'optional' => true, 'index' => true],
    ['name' => 'url', 'type' => 'string', 'optional' => false, 'index' => true],
],
'default_sorting_field' => 'page_id'

Credits