db8b2dceea
The `type` parameter has always been accepted by the search_shards api, probably to make the api and its urls the same as search. Truth is that the type never had any effect, it's been ignored from day one while accepting it may make users think that we actually do something with it. This commit removes support for the type parameter from the REST layer and the Java API. Backwards compatibility is maintained on the transport layer though. The new added serialization test also uncovered a bug in the java API where the `ClusterSearchShardsRequest` could be created with no arguments, but the indices were required to be not null otherwise the request couldn't be serialized as `writeTo` would throw NPE. Fixed by setting a default value (empty array) for indices. |
||
---|---|---|
.. | ||
request | ||
suggesters | ||
count.asciidoc | ||
explain.asciidoc | ||
field-stats.asciidoc | ||
multi-search.asciidoc | ||
percolate.asciidoc | ||
profile.asciidoc | ||
request-body.asciidoc | ||
search-shards.asciidoc | ||
search-template.asciidoc | ||
search.asciidoc | ||
suggesters.asciidoc | ||
uri-request.asciidoc | ||
validate.asciidoc |