OpenSearch/docs/reference
Alan Woodward 5107949402
Allow TokenFilterFactories to rewrite themselves against their preceding chain (#33702)
We currently special-case SynonymFilterFactory and SynonymGraphFilterFactory, which need to 
know their predecessors in the analysis chain in order to correctly analyze their synonym lists. This
special-casing doesn't work with Referring filter factories, such as the Multiplexer or Conditional
filters. We also have a number of filters (eg the Multiplexer) that will break synonyms when they
appear before them in a chain, because they produce multiple tokens at the same position.

This commit adds two methods to the TokenFilterFactory interface.

* `getChainAwareTokenFilterFactory()` allows a filter factory to rewrite itself against its preceding
  filter chain, or to resolve references to other filters. It replaces `ReferringFilterFactory` and
  `CustomAnalyzerProvider.checkAndApplySynonymFilter`, and by default returns `this`.
* `getSynonymFilter()` defines whether or not a filter should be applied when building a synonym
  list `Analyzer`. By default it returns `true`.

Fixes #33609
2018-09-19 15:52:14 +01:00
..
aggregations Corrected aggregation name to match the example (#33786) 2018-09-17 18:24:43 -07:00
analysis Allow TokenFilterFactories to rewrite themselves against their preceding chain (#33702) 2018-09-19 15:52:14 +01:00
cat Remove discovery-file plugin (#33257) 2018-09-18 12:01:16 +01:00
cluster [Docs] Remove repeating words (#33087) 2018-08-28 13:16:43 +02:00
commands add elasticsearch-shard tool (#32281) 2018-09-19 10:28:22 +02:00
docs Revert "Do NOT allow termvectors on nested fields (#32728)" 2018-08-24 10:12:16 -04:00
how-to Upgrade to a Lucene 8 snapshot (#33310) 2018-09-06 14:42:06 +02:00
images DOC: Add SQL section on client applications 2018-09-13 15:44:52 +03:00
index-modules add elasticsearch-shard tool (#32281) 2018-09-19 10:28:22 +02:00
indices Merge branch 'master' into ccr 2018-07-31 10:56:10 -04:00
ingest ingest: Introduce the dissect processor (#32884) 2018-08-28 07:11:20 -07:00
licensing [DOCS] Fix licensing API details (#31667) 2018-06-28 15:38:41 -07:00
mapping New plugin - Annotated_text field type (#30364) 2018-09-18 10:25:27 +01:00
migration Remove discovery-file plugin (#33257) 2018-09-18 12:01:16 +01:00
ml [DOCS] Adds delete forecast API (#33401) 2018-09-06 09:20:42 -07:00
modules Emphasize that filesystem-level backups don't work (#33102) 2018-09-19 08:36:03 +01:00
monitoring Implement xpack.monitoring.elasticsearch.collection.enabled setting (#33474) 2018-09-17 18:33:43 -07:00
query-dsl [DOCS] Clarify scoring for multi_match phrase type (#32672) 2018-09-18 16:57:33 +02:00
release-notes serialize suggestion responses as named writeables (#30284) 2018-08-07 13:31:00 -07:00
rest-api [DOCS] Moves machine learning APIs to docs folder (#31118) 2018-08-31 16:49:24 -07:00
rollup [DOCS] fix a couple of typos (#33356) 2018-09-04 10:07:11 +02:00
search [DOCS] Update scroll.asciidoc (#32530) 2018-09-18 17:00:22 +02:00
security [DOCS] Moves security reference to docs folder (#33643) 2018-09-14 13:09:47 -07:00
settings Implement xpack.monitoring.elasticsearch.collection.enabled setting (#33474) 2018-09-17 18:33:43 -07:00
setup Docs: Fixed a grammatical mistake: 'a HTTP ...' -> 'an HTTP ...' (#33744) 2018-09-17 15:35:54 -04:00
sql DOC: improved wording in SQL client app section 2018-09-13 22:07:23 +03:00
testing [Docs] Remove repeating words (#33087) 2018-08-28 13:16:43 +02:00
upgrade [Test] Remove duplicate method in TestShardRouting (#32815) 2018-09-10 18:29:00 +02:00
aggregations.asciidoc [Docs] Update aggregations.asciidoc (#29265) 2018-03-28 15:01:45 +02:00
analysis.asciidoc [Docs] Add clarification to analysis example (#31826) 2018-07-06 14:36:58 +02:00
api-conventions.asciidoc Default to one shard (#30539) 2018-05-14 12:22:35 -04:00
cat.asciidoc Rename the bulk thread pool to write thread pool (#29593) 2018-04-19 08:18:58 -04:00
cluster.asciidoc Update docs for node specifications (#30468) 2018-08-20 14:21:31 +01:00
docs.asciidoc Inclusion of link to Multi Delete (#22619) 2017-01-16 12:58:59 +01:00
getting-started.asciidoc Set maxScore for empty TopDocs to Nan rather than 0 (#32938) 2018-08-22 17:23:54 +02:00
glossary.asciidoc Default to one shard (#30539) 2018-05-14 12:22:35 -04:00
gs-index.asciidoc [DOCS] Adding index file for GS "mini book". 2017-07-18 13:44:08 -07:00
how-to.asciidoc Correct grammar in list in how-to docs 2017-01-17 20:57:22 -05:00
index-modules.asciidoc [DOCS] Fixes formatting error 2018-09-07 10:26:44 -07:00
index.asciidoc [DOCS] Moves monitoring pages to docs folder (#33324) 2018-09-04 10:02:13 -07:00
index.x.asciidoc [DOCS] Removes redundant index.asciidoc files (#30707) 2018-05-18 11:05:40 -07:00
indices.asciidoc add split index reference in indices.asciidoc 2017-11-06 12:55:41 +01:00
ingest.asciidoc [Docs] Changes to ingest.asciidoc (#28212) 2018-01-16 09:36:19 +01:00
mapping.asciidoc Don't count metadata fields towards index.mapping.total_fields.limit (#33386) 2018-09-05 18:27:21 +02:00
modules.asciidoc Remove left-over tribe reference 2018-01-30 21:44:21 +01:00
query-dsl.asciidoc Update query-dsl.asciidoc (#27669) 2017-12-11 18:06:08 +01:00
redirects.asciidoc Upgrade to a Lucene 8 snapshot (#33310) 2018-09-06 14:42:06 +02:00
release-notes.asciidoc Migrate migration docs from 6.0 to 7.0 (#26227) 2017-08-16 13:12:44 -06:00
search.asciidoc [Docs] Add search timeout caveats (#33354) 2018-09-03 20:56:05 +02:00
setup.asciidoc [DOCS] Starting Elasticsearch (#31701) 2018-07-03 13:40:37 -07:00
testing.asciidoc [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
upgrade.asciidoc Revert "[DOCS] Added 6.3 info & updated the upgrade table. (#30940)" 2018-06-11 22:04:36 -04:00