Introduction

With Squirro release 3.1.0, users can now use the power of synonyms over Frontend to make their search experience even more powerful. New additions with this release include:

Setup

Setup for content fields

# Blank lines and lines starting with pound are comments.

# Explicit mappings match any token sequence on the LHS of "=>"
# and replace with all alternatives on the RHS.  These types of mappings
# ignore the expand parameter in the schema.
# Examples:
i-pod, i pod => ipod,
sea biscuit, sea biscit => seabiscuit

# Equivalent synonyms may be separated with commas and give
# no explicit mapping.  In this case the mapping behavior will
# be taken from the expand parameter in the schema.  This allows
# the same synonym file to be used in different synonym handling strategies.
# Examples:
ipod, i-pod, i pod
foozball , foosball
universe , cosmos
lol, laughing out loud

# If expand==true, "ipod, i-pod, i pod" is equivalent
# to the explicit mapping:
ipod, i-pod, i pod => ipod, i-pod, i pod
# If expand==false, "ipod, i-pod, i pod" is equivalent
# to the explicit mapping:
ipod, i-pod, i pod => ipod

# Multiple synonym mapping entries are merged.
foo => foo bar
foo => baz
# is equivalent to
foo => foo bar, baz

Set up on Facets

Search using synonyms

For enabling the synonyms search on the content (title, body & summary fields) of Squirro items, please populate the default synonyms list “Synonyms for Title, Body & Abstract” as described above. From here on, the synonyms search will be available by default on these fields.

Similarly, for enabling the search on a specific facet using a Squirro Synonyms, please follow the “Setup on Facets” section above. From there on, the synonyms search will be available for the configured facet.

Deletion of Synonyms Lists

Synonyms lists can be deleted using the delete button on the synonyms list management screen as shown below

Please note that we will not allow deletion of synonyms list which are currently in use by a facet or by the Squirro content fields. In order to delete such synonyms, you will first have to un-map them from the corresponding facet (in the facet edit menu) before proceeding to delete such synonyms list.