Created
June 7, 2020 12:16
-
-
Save bhavsarpratik/22fb92db6752a6114f2920e0e599aadd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-tokenfilter.html | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment