title: Springdata elasticsearch remapping id field to _id
body: <p>In java I have a domain class Foo. It has an id field. Springdata automatically maps this field to the field "id" and not "_id" because of it's name. Is there a way to remap this id to the _id field?</p>
  
  <pre><code>public class Foo  {
      @Id
      @Field(type = FieldType.String, store = true)
      private String id;
  }
  </code></pre>
  
  <p>So when I do findById(String id), the find by will use the id field in the domain object as opposed to the _id generated by elastic search.</p>
  
  <p>I tried making the method named: findBy_Id(String id), but spring data library will complain that this field doesn't exist in the model. I didn't want to have to rename my id property in all my objects to _id to get this to work.</p>