Skip to content

Conversation

@javanna
Copy link
Member

@javanna javanna commented May 22, 2019

Opening this only to get a CI run.

It includes these changes that need to be backported to 7.x: https://github.com/elastic/elasticsearch/pulls?q=is%3Apr+author%3Ajavanna+label%3A%22backport+pending%22+is%3Aclosed .

javanna added 8 commits May 22, 2019 16:07
As a follow-up to elastic#38540 we can use lambda functions and method
references where convenient in the low-level REST client.

Also, we need to update the docs to state that the minimum java version
required is 1.8.
…stic#41739)

In case a search request holds only the suggest section, the query phase
is skipped and only the suggest phase is executed instead. There will
never be hits returned, and in case the explain flag is set to true, the
 explain sub phase throws a null pointer exception as the query is null.
 Usually a null query is replaced with a match all query as part of SearchContext#preProcess which is though skipped as well with suggest
 only searches. To address this, we skip the explain sub fetch phase
 for search requests that only requested suggestions.

Closes elastic#31260
ShardId already implements Writeable so there is no need for it to implement Streamable too. Also the readShardId static method can be
easily replaced with direct usages of the constructor that takes a
StreamInput as argument.
@javanna
Copy link
Member Author

javanna commented May 22, 2019

Merged c2af624

@javanna javanna closed this May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant