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

Remove unused QueryParseContext argument in MappedFieldType#rangeQuery() #12417

Merged
merged 1 commit into from Jul 24, 2015

Conversation

cbuescher
Copy link
Member

The rangeQuery() method in MappedFieldType and some overwriting subtypes takes
a nullable QueryParseContext argument which is unused and can be deleted.
This is also useful for the current query parsing refactoring, since
we want to avoid passing the parse context object around unnecessarily.

The rangeQuery() method in MappedFieldType and some overwriting subtypes takes
a nullable QueryParseContext argument which is unused and can be deleted.
This is also useful for the current query parsing refactoring, since
we want to avoid passing the context object around unnecessarily.
@jpountz
Copy link
Contributor

jpountz commented Jul 23, 2015

LGTM. I'm curious if you checked whether other *Query methods also needed this context? The more methods we can remove this parameter from, the better!

@cbuescher
Copy link
Member Author

@jpountz not yet, but I think I will because we need to reduce the amount the context is passed around a bit for the query refactoring. Just want to go step by step here.

cbuescher added a commit that referenced this pull request Jul 24, 2015
Remove unused QueryParseContext argument in MappedFieldType#rangeQuery()
@cbuescher cbuescher merged commit 52113e7 into elastic:master Jul 24, 2015
@cbuescher cbuescher deleted the remove-rangequery-context branch March 11, 2016 11: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.

None yet

3 participants