Search by

magiccart / searchquery

magiccart

Search Query magento 2.

Package info

github.com/magepow/magento2-searchquery

Type:magento2-module

pkg:composer/magiccart/searchquery

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2026-10-29 03:46 UTC

This package is not auto-updated.

Last update: 2026-10-29 13:41:54 UTC


README

Magiccart SearchQuery is a Magento 2 extension that filters and sanitizes search queries before they are saved into search term popularity. It skips saving search terms that contain URLs, crypto-related keywords, or non-alphanumeric characters, reducing spam and irrelevant search terms in the store.

Features

  • Enable/disable the filter via admin configuration.
  • Skip saving search terms based on configurable rules.
  • Blocks URLs and crypto-related keywords (bitcoin, coin, crypto, usdt, eth).
  • Blocks search terms containing non-alphanumeric characters (except -, +, space).
  • Integrates via a plugin on Magento\Search\Model\Query.

Compatibility

  • Magento 2.3.x / 2.4.x
  • PHP 7.3+ / 8.x (as supported by your Magento version)

Installation

Manual Installation

  1. Create the directory app/code/Magiccart/SearchQuery.
  2. Copy the module files into that directory.
  3. Enable the module:
php bin/magento module:enable Magiccart_SearchQuery
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush

Configuration

Go to Stores > Configuration > Magiccart > Search Query (or as configured in system.xml) to enable/disable the module and set skip behavior.

License

OSL-3.0 / AFL-3.0