title: @Transient annotation is not working on Elasticsearch document
body: <h3>After indexing sample tweet entity, <em>language field</em> is indexed in elastisearch. What i am doing wrong?</h3>
  <p>Here is my Tweet class.</p>
  <pre><code>import org.springframework.data.annotation.Id;
  import org.springframework.data.annotation.Transient;
  import org.springframework.data.elasticsearch.annotations.Document;
  
  @Document(indexName = &quot;test&quot;, type = &quot;status&quot;)
  public class Tweet {
      @Id
      private String id;
      private String text;
      @Transient
      private String language;
  
      public String getId() {
         return id;
      }
      public void setId(String id) {
          this.id = id;
      }
      public String getText() {
          return text;
      }
      public void setText(String text) {
          this.text = text;
      }
      public String getLanguage() {
          return language;
      }
      public void setLanguage(String language) {
          this.language = language;
      }
  }
  </code></pre>
  <p><strong>Update</strong></p>
  <pre><code>import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
  import demo.entity.Tweet;
  
  public interface TweetRepository extends ElasticsearchRepository&lt;Tweet, String&gt;{
  
  }   
  </code></pre>
  <p>Main class</p>
  <pre><code>@SpringBootApplication
  public class DemoApplication implements CommandLineRunner{
      @Autowired
      TweetRepository repo;
      
      public static void main(String[] args) {
          SpringApplication.run(DemoApplication.class, args);
      }
  
      @Override
      public void run(String... arg0) throws Exception {
          Tweet tweet = new Tweet();
          tweet.setId(&quot;1&quot;);
          tweet.setLanguage(&quot;en&quot;);
          tweet.setText(&quot;Hello world&quot;);
      
          repo.save(tweet);
      }
  
  }
  </code></pre>
  <p>Pom.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;    xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0    http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;org.test&lt;/groupId&gt;
  &lt;artifactId&gt;demo&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;name&gt;demo&lt;/name&gt;
  &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.2.5.RELEASE&lt;/version&gt;
      &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;java.version&gt;1.7&lt;/java.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-elasticsearch&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.hateoas&lt;/groupId&gt;
          &lt;artifactId&gt;spring-hateoas&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      
      &lt;!-- Tried without this --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-elasticsearch&lt;/artifactId&gt;
          &lt;version&gt;1.2.0.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>application.properties</p>
  <pre><code>spring.data.elasticsearch.cluster-name= elasticsearch
  spring.data.elasticsearch.cluster-nodes=localhost:9300
  </code></pre>
  <p>Result is</p>
  <pre><code>GET test/status/_search
  
  {
     &quot;took&quot;: 1,
     &quot;timed_out&quot;: false,
     &quot;_shards&quot;: {
        &quot;total&quot;: 5,
        &quot;successful&quot;: 5,
        &quot;failed&quot;: 0
     },
     &quot;hits&quot;: {
        &quot;total&quot;: 1,
        &quot;max_score&quot;: 1,
        &quot;hits&quot;: [
           {
              &quot;_index&quot;: &quot;test&quot;,
              &quot;_type&quot;: &quot;status&quot;,
              &quot;_id&quot;: &quot;1&quot;,
              &quot;_score&quot;: 1,
              &quot;_source&quot;: {
                 &quot;id&quot;: &quot;1&quot;,
                 &quot;text&quot;: &quot;Hello world&quot;,
                 &quot;language&quot;: &quot;en&quot;
              }
           }
        ]
     }
  }
  </code></pre>
  <p>mm m mm m m m m m m mm n n m n m n m n m n m</p>