Browse Source

Fix misspellings.

Andrew Raines 12 years ago
parent
commit
5c085c1204

+ 1 - 1
docs/python/index.asciidoc

@@ -2,7 +2,7 @@
 
 == Overview
 
-Official low-level client for Elasticsearch. It's goal is to provide common
+Official low-level client for Elasticsearch. Its goal is to provide common
 ground for all Elasticsearch-related code in Python; because of this it tries
 to be opinion-free and very extendable. The full documentation is available at
 http://elasticsearch-py.rtfd.org/

+ 2 - 2
docs/reference/docs/index_.asciidoc

@@ -210,7 +210,7 @@ value is provided or extracted.
 [[parent-children]]
 === Parents & Children
 
-A child document can be indexed by specifying it's parent when indexing.
+A child document can be indexed by specifying its parent when indexing.
 For example:
 
 [source,js]
@@ -221,7 +221,7 @@ $ curl -XPUT localhost:9200/blogs/blog_tag/1122?parent=1111 -d '{
 --------------------------------------------------
 
 When indexing a child document, the routing value is automatically set
-to be the same as it's parent, unless the routing value is explicitly
+to be the same as its parent, unless the routing value is explicitly
 specified using the `routing` parameter.
 
 [float]

+ 1 - 1
docs/reference/indices/get-field-mapping.asciidoc

@@ -86,7 +86,7 @@ For example, consider the following mapping:
  }
 --------------------------------------------------
 
-To select the `id` of the `author` field, you can use it's full name `author.id`. Using `text` will return
+To select the `id` of the `author` field, you can use its full name `author.id`. Using `text` will return
 the mapping of `abstract` as it is one of the fields which map to the Lucene field `text`. `name` will return
 the field `author.name`:
 

+ 1 - 1
src/main/java/org/elasticsearch/action/admin/cluster/node/info/PluginInfo.java

@@ -56,7 +56,7 @@ public class PluginInfo implements Streamable, Serializable, ToXContent {
     }
 
     /**
-     * @return true is it's a site plugin
+     * @return true if it's a site plugin
      */
     public boolean isSite() {
         return site;

+ 2 - 2
src/main/java/org/elasticsearch/cluster/metadata/MetaDataMappingService.java

@@ -204,7 +204,7 @@ public class MetaDataMappingService extends AbstractComponent {
                         CompressedString mappingSource = updateTask.mappingSource;
 
                         if (indexMetaData.mappings().containsKey(type) && indexMetaData.mapping(type).source().equals(mappingSource)) {
-                            logger.debug("[{}] update_mapping [{}] ignoring mapping update task as it's source is equal to ours", index, updateTask.type);
+                            logger.debug("[{}] update_mapping [{}] ignoring mapping update task as its source is equal to ours", index, updateTask.type);
                             continue;
                         }
 
@@ -520,7 +520,7 @@ public class MetaDataMappingService extends AbstractComponent {
 
                     // TODO: adding one to the version is based on knowledge on how the parent class will increment the version
                     //       move this to the base class or add another callback before publishing the new cluster state so we
-                    //       capture it's version.
+                    //       capture its version.
                     countDownListener = new CountDownListener(counter, currentState.version() + 1, listener);
                     mappingCreatedAction.add(countDownListener, request.timeout);
 

+ 1 - 1
src/main/java/org/elasticsearch/common/inject/Provides.java

@@ -25,7 +25,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
 
 /**
  * Annotates methods of a {@link Module} to create a provider method binding. The method's return
- * type is bound to it's returned value. Guice will pass dependencies to the method as parameters.
+ * type is bound to its returned value. Guice will pass dependencies to the method as parameters.
  *
  * @author crazybob@google.com (Bob Lee)
  * @since 2.0

+ 1 - 1
src/main/java/org/elasticsearch/common/inject/internal/ProviderMethod.java

@@ -42,7 +42,7 @@ public class ProviderMethod<T> implements ProviderWithDependencies<T> {
     private final boolean exposed;
 
     /**
-     * @param method the method to invoke. It's return type must be the same type as {@code key}.
+     * @param method the method to invoke. Its return type must be the same type as {@code key}.
      */
     ProviderMethod(Key<T> key, Method method, Object instance,
                    ImmutableSet<Dependency<?>> dependencies, List<Provider<?>> parameterProviders,

+ 2 - 2
src/main/java/org/elasticsearch/index/VersionType.java

@@ -79,7 +79,7 @@ public enum VersionType {
     public abstract boolean isVersionConflict(long currentVersion, long expectedVersion);
 
     /**
-     * Returns the new version for a document, based on it's current one and the specified in the request
+     * Returns the new version for a document, based on its current one and the specified in the request
      *
      * @return new version
      */
@@ -114,4 +114,4 @@ public enum VersionType {
         }
         throw new ElasticSearchIllegalArgumentException("No version type match [" + value + "]");
     }
-}
+}

+ 1 - 1
src/main/java/org/elasticsearch/index/codec/postingsformat/ElasticSearch090PostingsFormat.java

@@ -36,7 +36,7 @@ import java.io.IOException;
  * This is the default postings format for ElasticSearch that special cases
  * the <tt>_uid</tt> field to use a bloom filter while all other fields
  * will use a {@link Lucene41PostingsFormat}. This format will reuse the underlying
- * {@link Lucene41PostingsFormat} and it's files also for the <tt>_uid</tt> saving up to
+ * {@link Lucene41PostingsFormat} and its files also for the <tt>_uid</tt> saving up to
  * 5 files per segment in the default case.
  */
 public final class ElasticSearch090PostingsFormat extends PostingsFormat {

+ 1 - 1
src/main/java/org/elasticsearch/index/search/child/ChildrenQuery.java

@@ -411,7 +411,7 @@ public class ChildrenQuery extends Query {
                     }
                     break;
                 case AVG:
-                    assert false : "AVG has it's own collector";
+                    assert false : "AVG has its own collector";
 
                 default:
                     assert false : "Are we missing a score type here? -- " + scoreType;

+ 3 - 3
src/test/java/org/elasticsearch/indices/store/IndicesStoreTests.java

@@ -58,7 +58,7 @@ public class IndicesStoreTests extends ElasticsearchIntegrationTest {
         logger.info("--> done cluster_health, status " + clusterHealth.getStatus());
 
 
-        logger.info("--> making sure that shard and it's replica are allocated on node_1 and node_2");
+        logger.info("--> making sure that shard and its replica are allocated on node_1 and node_2");
         assertThat(shardDirectory(node_1, "test", 0).exists(), equalTo(true));
         assertThat(shardDirectory(node_2, "test", 0).exists(), equalTo(true));
 
@@ -78,7 +78,7 @@ public class IndicesStoreTests extends ElasticsearchIntegrationTest {
         assertThat(clusterHealth.isTimedOut(), equalTo(false));
         logger.info("--> done cluster_health, status " + clusterHealth.getStatus());
 
-        logger.info("--> making sure that shard and it's replica exist on server1, server2 and server3");
+        logger.info("--> making sure that shard and its replica exist on server1, server2 and server3");
         assertThat(shardDirectory(node_1, "test", 0).exists(), equalTo(true));
         assertThat(server2Shard.exists(), equalTo(true));
         assertThat(shardDirectory(node_3, "test", 0).exists(), equalTo(true));
@@ -91,7 +91,7 @@ public class IndicesStoreTests extends ElasticsearchIntegrationTest {
         assertThat(clusterHealth.isTimedOut(), equalTo(false));
         logger.info("--> done cluster_health, status " + clusterHealth.getStatus());
 
-        logger.info("--> making sure that shard and it's replica are allocated on server1 and server3 but not on server2");
+        logger.info("--> making sure that shard and its replica are allocated on server1 and server3 but not on server2");
         assertThat(shardDirectory(node_1, "test", 0).exists(), equalTo(true));
         assertThat(shardDirectory(node_3, "test", 0).exists(), equalTo(true));
         assertThat(waitForShardDeletion(node_4, "test", 0), equalTo(false));

+ 2 - 2
src/test/java/org/elasticsearch/test/TestCluster.java

@@ -525,7 +525,7 @@ public final class TestCluster implements Iterable<Client> {
         logger.debug("Reset test cluster with transport client ratio: [{}]", transportClientRatio);
         this.transportClientRatio = transportClientRatio;
         this.random = new Random(random.nextLong());
-        resetClients(); /* reset all clients - each test gets it's own client based on the Random instance created above. */
+        resetClients(); /* reset all clients - each test gets its own client based on the Random instance created above. */
         if (wipeData) {
             wipeDataDirectories();
         }
@@ -583,7 +583,7 @@ public final class TestCluster implements Iterable<Client> {
      */
     synchronized void afterTest() {
         wipeDataDirectories();
-        resetClients(); /* reset all clients - each test gets it's own client based on the Random instance created above. */
+        resetClients(); /* reset all clients - each test gets its own client based on the Random instance created above. */
 
     }