Fix some typos (#18746)

* Update java-doc of SearchResponse.getProfileResults()

* Fix a trivial typo in Reference document
This commit is contained in:
trangvh 2016-06-07 21:41:39 +07:00 committed by Clinton Gormley
parent 692c42b23a
commit c0da8e4060
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ public class SearchResponse extends ActionResponse implements StatusToXContent {
* If profiling was enabled, this returns an object containing the profile results from
* each shard. If profiling was not enabled, this will return null
*
* @return The profile results or null
* @return The profile results or an empty map
*/
public @Nullable Map<String, List<ProfileShardResult>> getProfileResults() {
return internalResponse.profile();

View File

@ -9,7 +9,7 @@ conjunction with the cluster-wide allocation filters explained in
<<shards-allocation>>.
It is possible to assign arbitrary metadata attributes to each node at
startup. For instance, nodes could be assigned a `rack` and a `group`
startup. For instance, nodes could be assigned a `rack` and a `size`
attribute as follows:
[source,sh]