Skip to content

Conversation

javanna
Copy link
Member

@javanna javanna commented Nov 2, 2015

query_binary and filter_binary are unused at this point, as we only parse on the coordinating node and the java api only holds structured java objects for queries and filters, meaning they all implement Writeable and get natively serialized.

Relates to #14308

@dakrone
Copy link
Member

dakrone commented Nov 2, 2015

LGTM, but should be marked as "breaking" and noted in the migration guide?

@javanna
Copy link
Member Author

javanna commented Nov 2, 2015

should be marked as "breaking" and noted in the migration guide?

not really, we are just removing support for something that is at this time unused and was never documented. Last bit of the actual removal was part of #14384 with the removal of QuerySourceBuilder, which used query_binary internally and required it to be supported in core.

@dakrone
Copy link
Member

dakrone commented Nov 2, 2015

we are just removing support for something that is at this time unused and was never documented

From the code it looks like someone could send query_binary or queryBinary at the REST layer, is that correct? If so, I definitely think we should mark/document this as breaking, because even though we don't think anyone uses it, someone could be.

@javanna
Copy link
Member Author

javanna commented Nov 2, 2015

Sure the feature is exposed to the outside world, I can mark breaking just to make sure, but it feels very weird to document that we removed it given that we never documented before, and we couldn't even deprecate in 2.x for the very same reason. This feature made sense only internally since the java api allowed to provide queries as binary objects, it should be treated as an internal thing as it was up until now.

@javanna javanna force-pushed the enhancement/remove_query_filter_binary branch from 2e1d38e to 11b8e0a Compare November 3, 2015 13:03
query_binary and filter_binary are unused at this point, as we only parse on the coordinating node and the java api only holds structured java objects for queries and filters, meaning they all implement Writeable and get natively serialized.

Relates to elastic#14308
Closes elastic#14433
@javanna javanna force-pushed the enhancement/remove_query_filter_binary branch from 11b8e0a to ce6aa25 Compare November 3, 2015 13:06
@javanna javanna merged commit ce6aa25 into elastic:master Nov 3, 2015
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Search Refactoring labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking-java :Search/Search Search-related issues that do not fall into other categories v5.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants