anchor.diff:  
   [source,js]
   --------------------------------------------------
  +GET /_search
   {
      "query" : {
         "nested" : {
            "path" : "comments.votes",
  -         "query" : { ... },
  +         "query" : {
  +            "match": { "name": "kimchy" }
  +         },
            "inner_hits" : {}
         }
       }
   }
   --------------------------------------------------
  +// CONSOLE
   
   This indirect referencing is only supported for nested inner hits.
   
  
positive.code: 
  [source,js]
  --------------------------------------------------
  {
      "query" : {
          "nested" : {
              "path" : "comments",
              "query" : {
                  "match" : {"comments.message" : "[actual query]"}
              },
              "inner_hits" : {} <1>
          }
      }
  }
  --------------------------------------------------
  
  <1> The inner hit definition in the nested query. No other options need to be defined.
  
  
negative.code: 
  [source,js]
  --------------------------------------------------
  GET /_search
  {
      "query" : {
          "has_child" : {
              "type" : "comment",
              "query" : {
                  "match" : {"message" : "some message"}
              },
              "inner_hits" : {} <1>
          }
      }
  }
  --------------------------------------------------
  // CONSOLE
  
  <1> The inner hit definition like in the nested example.
  
  