Skip to content

Commit 0780c74

Browse files
Added additional documentation
1 parent 29d8c2f commit 0780c74

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/reference/analysis/tokenfilters/synonym-graph-tokenfilter.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ PUT /test_index
8787
}
8888
--------------------------------------------------
8989
// CONSOLE
90-
With the above request the word `bar` gets skipped but a mapping `foo => baz` is still added.
90+
With the above request the word `bar` gets skipped but a mapping `foo => baz` is still added. However, if the mapping
91+
being added was "foo, baz => bar" or "bar, foo, baz" nothing would get added to the synonym list. This is because the
92+
target word for the mapping is itself eliminated because it was a stop word.
9193

9294
[float]
9395
==== `tokenizer` and `ignore_case` are deprecated

docs/reference/analysis/tokenfilters/synonym-tokenfilter.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ PUT /test_index
7474
}
7575
--------------------------------------------------
7676
// CONSOLE
77-
With the above request the word `bar` gets skipped but a mapping `foo => baz` is still added.
77+
With the above request the word `bar` gets skipped but a mapping `foo => baz` is still added. However, if the mapping
78+
being added was "foo, baz => bar" or "bar, foo, baz" nothing would get added to the synonym list. This is because the
79+
target word for the mapping is itself eliminated because it was a stop word.
7880

7981

8082
[float]

0 commit comments

Comments
 (0)