Update synonym-tokenfilter.asciidoc (#19988)

* Update synonym-tokenfilter.asciidoc

* Update synonym-tokenfilter.asciidoc
This commit is contained in:
markwalkom 2016-08-17 21:38:56 +10:00 committed by Clinton Gormley
parent 27a760f9c1
commit f556424ab9
1 changed files with 13 additions and 13 deletions

View File

@ -45,20 +45,20 @@ The following is a sample format of the file:
[source,js]
--------------------------------------------------
# blank lines and lines starting with pound are comments.
# 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:
# 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:
# 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
@ -70,10 +70,10 @@ ipod, i-pod, i pod => ipod, i-pod, i pod
# to the explicit mapping:
ipod, i-pod, i pod => ipod
#multiple synonym mapping entries are merged.
# Multiple synonym mapping entries are merged.
foo => foo bar
foo => baz
#is equivalent to
# is equivalent to
foo => foo bar, baz
--------------------------------------------------
@ -96,7 +96,7 @@ configuration file (note use of `synonyms` instead of `synonyms_path`):
--------------------------------------------------
However, it is recommended to define large synonyms set in a file using
`synonyms_path`.
`synonyms_path`, because specifying them inline increases cluster size unnecessarily.
[float]
==== WordNet synonyms