-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Remove special-casing of Synonym filters in AnalysisRegistry #34034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
romseygeek
merged 17 commits into
elastic:master
from
romseygeek:synonyms-to-common-analysis
Sep 28, 2018
Merged
Changes from 10 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a211d96
Remove special-casing of Synonym filters in AnalysisRegistry
romseygeek 81b15ed
Tests fix; move synonym parsers as well
romseygeek 76bd382
Move common terms synonym tests to analysis-common REST tests
romseygeek e6c511c
Move match query with synonyms tests to common analysis rest test
romseygeek 92ade22
Move completion IT tests requiring synonyms to common-analysis
romseygeek 90fe91c
Remove synonym filter from snapshot/restore tests
romseygeek ae1da93
Move highlighter synonym tests to HighligherWithAnalyzersTests
romseygeek 5e8e9c3
Move MatchQueryIT tests using synonyms to common analysis module REST…
romseygeek e08fa39
Remove unnecessary synonym filter from QueryRescorerIT
romseygeek 593e440
Merge remote-tracking branch 'origin/master' into synonyms-to-common-…
romseygeek 98eeb2e
checkstyle
romseygeek a09979a
access
romseygeek b69b9d6
Migrate validate query tests with synonyms to analysis-common rest tests
romseygeek cee73cd
more tests
romseygeek 06cbc81
imports
romseygeek 23a7cd1
remove unnecessary synonyms mapping
romseygeek e1a29d6
Merge remote-tracking branch 'origin/master' into synonyms-to-common-…
romseygeek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ | |
| * under the License. | ||
| */ | ||
|
|
||
| package org.elasticsearch.index.analysis; | ||
| package org.elasticsearch.analysis.common; | ||
|
|
||
| import org.apache.lucene.analysis.Analyzer; | ||
| import org.apache.lucene.analysis.TokenStream; | ||
|
|
@@ -26,8 +26,13 @@ | |
| import org.elasticsearch.common.settings.Settings; | ||
| import org.elasticsearch.env.Environment; | ||
| import org.elasticsearch.index.IndexSettings; | ||
| import org.elasticsearch.index.analysis.AbstractTokenFilterFactory; | ||
| import org.elasticsearch.index.analysis.Analysis; | ||
| import org.elasticsearch.index.analysis.CharFilterFactory; | ||
| import org.elasticsearch.index.analysis.CustomAnalyzer; | ||
| import org.elasticsearch.index.analysis.TokenFilterFactory; | ||
| import org.elasticsearch.index.analysis.TokenizerFactory; | ||
|
|
||
| import java.io.IOException; | ||
| import java.io.Reader; | ||
| import java.io.StringReader; | ||
| import java.util.List; | ||
|
|
@@ -41,8 +46,8 @@ public class SynonymTokenFilterFactory extends AbstractTokenFilterFactory { | |
| protected final Settings settings; | ||
| protected final Environment environment; | ||
|
|
||
| public SynonymTokenFilterFactory(IndexSettings indexSettings, Environment env, AnalysisRegistry analysisRegistry, | ||
| String name, Settings settings) throws IOException { | ||
| public SynonymTokenFilterFactory(IndexSettings indexSettings, Environment env, | ||
|
||
| String name, Settings settings) { | ||
| super(indexSettings, name, settings); | ||
| this.settings = settings; | ||
|
|
||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this constructor can now be package protected?