@Override
    ObjectNode toJson(ObjectMapper mapper) {
      ObjectNode result = mapper.createObjectNode();
      result.with("prefix").put(fieldName, value);
      return result;
    }
Constructs a query that only match on documents that the field has a value in them.
criteria/elasticsearch/src/org/immutables/criteria/elasticsearch/QueryBuilders.java