v2.2.53

Manage Stopwords

Stopwords are words that have little lexical meaning or ambiguous meaning and are not useful during a search (ex. and, or, the, a, with, etc). Therefore, these words should be removed from search phrases to make them relevant.

You can either manually add stopwords, or import them from a CSV-formatted file.

Adding New Stopword

  • Go to the System -> Search Management -> Manage Stopwords grid and press the Add New Stopword button.
  • On the creation page, fill in the following fields:
    • Stopword - is the keyword which should be removed from search requests.
    • Store View - allows you to select where defined synonyms will be applied.
  • Save record.

Importing Stopwords

Our extension uses the CSV file format for stopwords importing. It should resemble the following format:

    [Stopword_1]
    [Stopword_2]
    [Stopword_3]

The name of this file should be equal to your language code in capital letters. Codes can be found here, use column 639-1 for that.

Example

Let's create a stopwords file for English locale. The name of such a file would be EN.csv, and its content should be:

    but
    now
    what
    except

To import stopwords from such a file, perform the following steps:

  • Place your custom CSV file to the special [magento_root]/var/stopwords/ folder.
  • Go to System -> Search Management -> Manage Stopwords and press the Import Stopwords button.
  • Dictionary field defines locale (language), for which stopwords are imported. It is picked from the name of your CSV import files.
  • Store View defines the storeview, where imported stopwords should be applied.
  • Press Import to import and apply stopwords.