About Features Downloads Getting Started Documentation Events Support GitHub

Site Tools


indexing:stop_words_and_synonyms

Stop Words and Synonyms

VuFind's Solr index allows the library to configure their own custom stop words list as well as a list of synonyms used in searching. There is a default stop words list as well as a few basic synonyms that come prepackaged with VuFind - however it is very easy to change these to customize for your library's needs.

Stop Words

Edit the file: stopwords.txt and simply remove or add new words to the list.

Synonyms

Edit the file: synonyms.txt and simply follow the examples provided to create new synonyms. VuFind's default synonyms are for the numbers 1 - 5. It lists synonyms for the following:

  • 1,i,I,one,One
  • 2,ii,II,two,Two
  • 3,iii,III,three,Three
  • 4,iv,IV,four,Four
  • 5,v,V,five,Five

This allows a user to search for “world war two” and find items with the term “world war ii”

Important Note

Remember to restart Solr after changing either of these files. When you change your stopword settings, it is also necessary to reindex all of your records.

indexing/stop_words_and_synonyms.txt · Last modified: 2018/12/19 18:57 by demiankatz