Documentation Center

Creating a Stop-Words List

You can exclude certain topics, or directories of topics, from being indexed by SDL LiveContent Reach. To be more granular, however, you can also exclude English words from being indexed, too.

About this task

SDL LiveContent Reach comes with a default stop-words list. To customize the behavior of this list to suit your needs, follow these steps.

Procedure

  1. Copy LiveContent_home\db\LiveContent\ui\skins\base\xsl\ui\search_build_xconf.xsl to your custom skin, and then open the custom skin version in a text editor.
  2. Replace the <analyzer id="en" class="org.apache.lucene.analysis.standard.StandardAnalyzer "/> statement with <analyzer id="en" class="com.xyenterprise.lucene.analysis.standard.LCStandardAnalyzer"/>
  3. At a command prompt, run loaddb.
  4. In a text editor, from the LiveContent_home directory, open the stop_words.conf.tmpl file.
  5. Add, remove, or modify the words in the list, as appropriate.
  6. Save the file as stop_words.conf
  7. Restart Tomcat or the LiveContent XML database service.
  8. Reindex the database.