View Source

To improve relevance, it's helpful for a search application to understand how one word might be used for another. By maintaining a list of synonyms, an index can ensure that a query using one term will return data using another term which has been pre-defined as a synonym.


Stopwords are words or strings that an index should ignore in order to produce the most relevant results possible (literally, the indexing process stops at the word and skips over it). Most search applications treat common words such as "a" and "the" as stopwords. It's rare that these words contribute to the relevance of a query result, however in some cases they may (i.e., a music database with the band "The The").

!screen-queries-settings-synstop.1.6.png|border=1!

h2. Editing the List of Synonyms

LucidWorks Enterprise includes a default list of synonyms. You can edit the list or create a list of your own. Click on the arrow by the word _Synonyms_ to see a list of synonyms.

!screen-queries-settings-synonyms.1.6.png|border=1!


To add synonyms to the list, click the _Add_ button. A blank line appears in the list. Type a comma-separate list of at least two synonyms. You do not need to click _Add_ again; the list accepts your new entry as soon as you type it.

To edit an entry in the list, move your mouse over the entry and click to select it. Edit the entry as you like.

To delete an entry, click in the entry to select it. Then click _Delete_.

{note:title=Field Configuration for Synonyms}

Fields must be properly configured for synonyms to work properly.  If expecting synonyms to operate on a specific field, the settings "Search by Default" and "Enable Query Synonym Expansion" must be enabled or you may experience situations where search results do not include all documents which contain the synonym terms.  Unless you give a specific field in your query, LucidWorks Enterprise will query for synonym terms only in those fields which are both enabled for default search and enabled for synonym expansion.
{note}


Synonyms in LucidWorks Enterprise uses Solr's [synonym functionality|http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory], which means it can support direct mappings of terms and a more expanded equivalency between multiple terms.  Enter all of the terms that are equivalent, separated by a comma, and the system will search for the additional terms when one of the terms in the list is entered.

h2. Editing the List of Stopwords



LucidWorks Enterprise includes a default list of stopwords for English. You can edit the list as you like to tailor the use of stopwords to the needs of your particular search application.

Click on the arrow by the word _Stopwords_ to see a list of stopwords.

  !screen-queries-settings-stopwords.1.6.png|border=1!

To add a stopword, click _Add_ at the bottom of the list. 

To edit an entry in the list, move your mouse over the entry then click to select it. Edit the entry as you like.

To delete an entry, click in the entry to select it. Then click _Delete_.