Commerce Search

Component ID

2117269

Component name

Commerce Search

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

4592

Component created

Component changed

Component body

Commerce Search integrates Drupal Commerce and Drupal core's search.module to expose products as a search option alongside "Node" and "User" in the search settings form and search results.

This is useful to:

  • integrate full text search of products into an existing node-based or Comerce Product-based Views module view, without needing to rebuild the view as a Search API Index-based view.
  • enable product-only search without depending on Search API nor a Solr server.

Modules that use Search API and/or Solr are more powerful and flexible:

Commerce Search module, however, integrates with Drupal core's search.module, so it is easier to get running quickly, and integrate with node-based Views module views that would otherwise be difficult to create as or convert to Search API index-based Views module views.

Usage

  1. Install & enable just like any Drupal module
  2. Navigate to admin/config/search/settings
  3. Check "Commerce Search"
  4. Click "Save"

Configuration

This is optional, but recommended for better search indexing.

  1. Navigate to admin/commerce/config/product-variation-types
  2. For each product variation type
    1. Click "Manage display"
    2. Click "Custom display settings"
    3. Check "Node: Search index"
    4. Click "Save"
    5. Click the "Node: Search index" tab
    6. So that they do not get indexed it is recommended to:
      • Hide the labels of all fields
      • Hide the price field, or for multicurrency stores, configure it to show currency but not price
      • Hide other fields that do not contain meaningful text strings or that should not be indexed