Fix some typos (#18746)
* Update java-doc of SearchResponse.getProfileResults() * Fix a trivial typo in Reference document
This commit is contained in:
parent
692c42b23a
commit
c0da8e4060
|
@ -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();
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue