You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 260_Synonyms/50_Analysis_chain.asciidoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ stemmer, and to list just the root words that would be emitted by the stemmer:
39
39
Normally, synonym filters are placed after the `lowercase` token filter and so
40
40
all synonyms are ((("synonyms", "and the analysis chain", "case-sensitive synonyms")))((("case-sensitive synonyms")))written in lowercase, but sometimes that can lead to odd
41
41
conflations. For instance, a `CAT` scan and a `cat` are quite different, as
42
-
are `PET` (positron emmision tomography) and a `pet`. For that matter, the
42
+
are `PET` (positron emission tomography) and a `pet`. For that matter, the
43
43
surname `Little` is distinct from the adjective `little` (although if a
44
44
sentence starts with the adjective, it will be uppercased anyway).
45
45
@@ -49,15 +49,15 @@ that your synonym rules would need to list all of the case variations that you
49
49
want to match (for example, `Little,LITTLE,little`).
50
50
51
51
Instead of that, you could have two synonym filters: one to catch the case-sensitive
52
-
synonyms and one for all the case-insentive synonyms. For instance, the
52
+
synonyms and one for all the case-insensitive synonyms. For instance, the
53
53
case-sensitive rules could look like this:
54
54
55
55
"CAT,CAT scan => cat_scan"
56
56
"PET,PET scan => pet_scan"
57
57
"Johnny Little,J Little => johnny_little"
58
58
"Johnny Small,J Small => johnny_small"
59
59
60
-
And the case-insentive rules could look like this:
60
+
And the case-insensitive rules could look like this:
0 commit comments