Skip to content

Instantly share code, notes, and snippets.

@Adamsimsy
Created November 10, 2017 00:24
Show Gist options
  • Save Adamsimsy/e72da0c87e1ec04e445c7817a2a7e83e to your computer and use it in GitHub Desktop.
Save Adamsimsy/e72da0c87e1ec04e445c7817a2a7e83e to your computer and use it in GitHub Desktop.
Apache SOLR term synonyms
#some test synonym mappings unlikely to appear in real input text
aaafoo => aaabar
bbbfoo => bbbfoo bbbbar
cccfoo => cccbar cccbaz
fooaaa,baraaa,bazaaa
# Some synonym groups specific to this example
GB,gib,gigabyte,gigabytes
MB,mib,megabyte,megabytes
Television, Televisions, TV, TVs
#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
#after us won't split it into two words.
# Synonym mappings can be used for spelling correction too
pixima => pixma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment