Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented May 16, 2017

Moves the remaining preconfigured token figured into the analysis-common module. There were a couple of tests in core that depended on the pre-configured token filters so I had to touch them:

  • GetTermVectorsCheckDocFreqIT depended on type_as_payload but didn't do anything important with it. I dropped the dependency. Then I moved the test to a single node test case because we're trying to cut down on the number of ESIntegTestCase subclasses.
  • AbstractTermVectorsTestCase and its subclasses depended on type_as_payload. I dropped their usage of the token filter and added an integration test for the termvectors API that uses type_as_payload to the analysis-common module.
  • AnalysisModuleTests expected a few pre-configured token filtes be registered by default. They aren't any more so I dropped this assertion. We assert that the CommonAnalysisPlugin registers these pre-built token filters in CommonAnalysisFactoryTests
  • SearchQueryIT and SuggestSearchIT had tests that depended on the specific behavior of the token filters so I moved the tests to integration tests in analysis-common.

nik9000 added 10 commits May 11, 2017 13:28
This plugin reimplements the one built into lucene's analysis
jar so we don't depend on that in core. It'd probably be better
to move the integration tests for fetching term vectors into
analysis-common but that felt like a bigger change than was worth
it.
The only thing it brings that the other tests don't is
We can integration test in analysis-common.
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nik9000 nik9000 merged commit 7ef3900 into elastic:master May 16, 2017
@nik9000
Copy link
Member Author

nik9000 commented May 16, 2017

Thanks @rjernst!

nik9000 added a commit that referenced this pull request May 17, 2017
It was assuming that payloads were available in a context where
they weren't.

Relates to #24716
@nik9000 nik9000 deleted the prebuilt_token_filter_3 branch June 7, 2017 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants