Stop Lists

A file called stoplist.txt is automatically created in the index directory when the Index Manager is launched. The stop list contains common words that will be ignored while indexing and searching allowing for greater performance, particularly with larger indexes.

Editing Stop Lists

Words that are common or unique to your site can be added or removed from the stop list file using a text editor (Notepad, EditPlus etc). The file must be;

Note: Any changes to the file will necessitate deletion and recreation of the index.
Note: When using the Auto-Complete PopularSearches setting, offensive words should not be added to the stop list as those words could appear as suggestions if another user searches for them.

Deactivating

To deactivate the use of the stop list file, and allow all words to be indexed and searched, open stoplist.txt as explained above and delete all words.

Clear Programmatically

The stop list can be cleared programmatically by calling
Configuration.StopWords.Clear();
after every DocumentIndex or SearchAgent instantiation.

Non-English Stop Lists

Stop lists for non-English languages can be found in the product installation folder under 'Stop-Lists'. Locate the stop list for your language and copy the file to your Index Directory before creating the index.

Procedure for Creating and Modifying Stop Lists

  1. Launch the Index Manager - stoplist.txt will be automatically created in the Index Directory
  2. Load stoplist.txt in a text editor such as Notepad or Visual Studio
  3. a. To remove a word - delete the word and ensure remaining words are listed one per line.
    b. To add a word - insert the word in alphabetical order, on it's own line and in lowercase.
    c. To add words in bulk - insert the words, one per line and in lowercase. Use the Sort function to arrange the words in alphabetical order.
  4. Ensure the first line has a " " (space) and then save as UTF8 encoding.