@Override
    ObjectNode toJson(ObjectMapper mapper) {
      ObjectNode result = mapper.createObjectNode();
      result.with("term").set(fieldName, toJsonValue(value, mapper));
      return result;
    }
A Query that matches documents containing a term.
criteria/elasticsearch/src/org/immutables/criteria/elasticsearch/QueryBuilders.java