anchor.diff:  ----
   
   
  -==== Reading data from {es}
  +=== Reading data from {es}
   
   In a similar fashion, to read data from {es}, one needs to use +org.elasticsearch.hadoop.mr.ESInputFormat+ class.
   While it can read an entire index, it is much more convenient to actually execute a query and then feed the results back to Hadoop.
   
  -===== 'Old' (+org.apache.hadoop.mapred+) API
  +==== 'Old' (+org.apache.hadoop.mapred+) API
   
   Following our example above on radio artists, to get a hold of all the artists that start with 'me', one could use the following snippet:
   
  
positive.code: JobClient.runJob(conf);
  ----
  
  ===== 'New' (+org.apache.hadoop.mapreduce+) API
  
  As expected, the +mapreduce+ API version is quite similar:
  [source,java]
  
negative.code: JobClient.runJob(conf);
  ----
  
  ==== 'New' (+org.apache.hadoop.mapreduce+) API
  
  Using the 'new' is strikingly similar - in fact, the exact same class (+org.elasticsearch.hadoop.mr.ESOutputFormat+) is used:
  
  