Work with stopwords

  • Updated

Stopwords are the common words in language that are ignored when included within a search query. Configured Commerce has a default set of stopwords already included, but it may be useful to add additional subjective terms from being included in search query processing. For example, words such as "quality", "cheap", "value", and so on could be added so that if a user enters a query of "cheap bolts", search will only process the word "bolts."

The following is the default list of stopwords:

they, this, to, was, will, with

that, the, their, then, there, these,

no, not, of, on, or, such,

for, if, in, into, is, it,

a, an, and, are, as, at, be, but, by,

Stopwords are not case sensitive.

The stop token filter that removes the stop words from a token stream does not apply to the Product Number or the Manufacturer Item. The Product Number and Manufacturer Item fields are intended as single term, and stop word removal is intended for multi-word streams.

Add stopwords

  1. Go to Admin Console > Marketing > Search > Stopwords.
  2. Click Search Stopword.
  3. Enter the Stopword in the Word field.
  4. Click Save if only one Stopword is being added, otherwise click Save and Add to add additional stopwords.

Remove stopwords

  1. Go to Admin Console > Marketing > Search > Stopwords.
  2. Select the word to be removed from the Stopword list by clicking Edit.

If multiple words are to be removed click the checkbox next to each word that needs to be removed.

Import or export stopwords

  1. Go to Marketing > Search > Stopwords.
  2. Click Import.
  3. Click Choose File and select the file to be imported.
  4. Select the desired import options for the import file.

  5. Click Import to import the Stopword file.