Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Indexing

Provide some indexing details here, benefits for the client and possibilities

There are two mechanisms of indexing:

  • Entire data reindexing - An entire set of data (products, categories and content pages) are pushed to Hawksearch index at one time.

  • Single item reindexing - A single item (product, category, content page) is pushed to Hawksearch index. It happens when item is updated.

All indexing operations are processed asynchronously

Entire data reindexing

Items are reindexed using temporary index in background. The current (production) index is still used for searching. The temporary index is swapped with production index only when it is ready.

Single item reindexing

A single item update is pushed into current production index.

 

Automatic indexing

Manual indexing

List of indexers:

  • hawksearch_products - Reindex all products

  • hawkserech_content_pages - Reindex all content pages

  • hawksearch_categories - Reindex all categories

Reindexing CLI command:

php <magento>/<path>/bin/magento indexer:reindex hawksearch_products

Since all items are stored in the same Hawkserch index any indexer triggers the entire data set for reindexing, including products, content_pages and categories

Product indexing

Reindex command

php <magento>/<path>/bin/magento indexer:reindex hawksearch_products

Indexed attributes

It is possible to configure which product attributes will be pushed to Hawksearch index. The attributes configuration can be done on “Product Settings“ tab through Stores > Configuration > HAWKSEARCH.

Default indexed attributes

The following attributes are pushed to Hawksearch index regardless of what is set in configuration. These attributes are:

  • name - Product name

  • url - Product URL

  • image_url - Product Image URL

  • thumbnail_url - Product Thumbnail URL

Along with the attributes the following system data is pushed:

  • type_id - Magento product type

  • group_id - The parent product ID. It is used for child products which are part of complex products (Configurable, Bundle, Grouped)

  • __uid - This is the unique item identifier. For products entity_id is used

  • __type - The item type. It is one of product or content_page

Make sure that each default attribute, product type_id and all system fields have fields created in Hawksearch Workbench

 

Price attributes

The following price attributes will be pushed to Hawksearch index

  • price_regular

  • price_final

  • price_regular_include_tax

  • price_final_include_tax

  • price_regular_formatted

  • price_final_formatted

  • price_regular_include_tax_formatted

  • price_final_include_tax_formatted

  • price_group_<group_id>

  • price_group_<group_id>_include_tax

  • price_group_<group_id>_formatted

  • price_group_<group_id>_include_tax_formatted

Customer group pricing data will be pushed for every Customer group created in the Magento. You can review the full list of customer groups in Magento on the page Customers > Customer Groups

For example, if your store has the following groups (see image above) then these price attributes will be pushed to HawkSearch index:

  • price_group_0

  • price_group_0_include_tax

  • price_group_0_formatted

  • price_group_0_include_tax_formatted

  • price_group_1

  • price_group_1_include_tax

  • price_group_1_formatted

  • price_group_1_include_tax_formatted

  • price_group_2

  • price_group_2_include_tax

  • price_group_2_formatted

  • price_group_2_include_tax_formatted

  • price_group_3

  • price_group_3_include_tax

  • price_group_3_formatted

  • price_group_3_include_tax_formatted

Please refer to the Fields documentation and create all fields needed.

Category indexing

Reindex command

php <magento>/<path>/bin/magento indexer:reindex hawksearch_categories

Content page indexing

Reindex command

php <magento>/<path>/bin/magento indexer:reindex hawkserech_content_pages

Indexed attributes

  • title

  • content_heading

  • content

Make sure that each attribute has fields created in Hawksearch Workbench

  • No labels