Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This module improves autocomplete with auto-generation of suggestions. Additional terms are generated automatically based on product names. Also searched text cab be bolded in results.

Table of Contents
maxLevel7
minLevel1

Installation

Info

This module is optional

...

Name

Value

Note

Generate terms

Yes/No

Along with terms coming from search history, additional terms will be generated automatically based on products names. Terms will be merged with search history based on returned products count.

Bold searched text in results

Yes/No

When enabled searched text will be bolded on results list

Search Performance Improvement

The module provides also performance improvement for getting top search result collection

The default value of TTL is 3600s (1h).

If you want to change it follow to:

  1. Store

  2. Configuration

  3. Catalog

  4. Catalog Search

  5. Top Search Result Cache's Lifetime (TTL)

Backend

Class

Description

Code Block
\MageSuite\Autocomplete\Plugin\Search\Model\ResourceModel\Query\Collection\GetFromCacheIsTopSearchResult

This plugin overwritten:

Code Block
\Magento\Search\Model\ResourceModel\Query\Collection::isTopSearchResult

The base method is not optimal and due to performance, the logic has been moved to the plugin and is executing if is not possible to get the result from the cache.

Note

TODO - BE documentation and review of documentation is needed

...