Skip to content
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

Replace IndicesQueriesRegistry #22289

Merged
merged 4 commits into from
Dec 21, 2016
Merged

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Dec 20, 2016

Replaces IndicesQueriesRegistry with XContentParser#namedObject.

This is the first of the real payoff for #22003, one less thing to pass around the entire application. Now the parsers it contained are wrapped in the XContentParser.

@nik9000
Copy link
Member Author

nik9000 commented Dec 20, 2016

@rjernst or @imotov or @javanna or @martijnvg want to have a look? I'm not picky who looks....

ParseFieldMatcher parseFieldMatcher) {
QueryParseContext context = new QueryParseContext(indicesQueriesRegistry, requestParser, parseFieldMatcher);
public static QueryBuilder getQueryContent(XContentParser requestParser, ParseFieldMatcher parseFieldMatcher) {
// NOCOMMIT it is very close to time to remove this
Copy link
Member Author

Choose a reason for hiding this comment

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

But not yet time, I think. This PR is big enough as is.

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM

@javanna javanna changed the title Replace IndiciesQueriesRegistry Replace IndicesQueriesRegistry Dec 21, 2016
@nik9000 nik9000 force-pushed the named_xcontent_queries branch from d1e7b20 to c135f66 Compare December 21, 2016 13:03
@nik9000 nik9000 merged commit 567c65b into elastic:master Dec 21, 2016
@nik9000
Copy link
Member Author

nik9000 commented Dec 21, 2016

Thanks for reviewing @martijnvg! One more parser registry down and one less thing bound in guice. Hurray!

master: 567c65b
5.x: 0d054ab

jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Dec 21, 2016
* master:
  Simplify Unicast Zen Ping (elastic#22277)
  Replace IndicesQueriesRegistry (elastic#22289)
  Fixed document mistake and fit for 5.1.1 API
  [TEST] improve error message in ESTestCase#assertWarnings
  [TEST] remove deleted test classes from checkstyle suppressions
  [TEST] make ESSingleNodeTestCase tests repeatable (elastic#22283)
  Link for setting page in elasticsearch.yml is outdated
  Factor out sort values from InternalSearchHit (elastic#22080)
  Add ID for percolate query to Java API docs
  x_refresh.yaml tests should use unique index names and doc ids to ease debugging
  IndicesStoreIntegrationIT should not use start recovery sending as an indication that the recovery started
  Added base class for testing aggregators and some initial tests for `terms`, `top_hits` and `min` aggregations.
  Add link to foreach processor to ingest-attachment.asciidoc
nik9000 added a commit that referenced this pull request Dec 22, 2016
* Switch query parsing to namedObject
* Remove IndicesQueriesRegistry
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