Browse Source

Fix some typos (#18746)

* Update java-doc of SearchResponse.getProfileResults()

* Fix a trivial typo in Reference document
trangvh 9 years ago
parent
commit
c0da8e4060

+ 1 - 1
core/src/main/java/org/elasticsearch/action/search/SearchResponse.java

@@ -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();

+ 1 - 1
docs/reference/index-modules/allocation/filtering.asciidoc

@@ -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]