No id property found for class

public void putMapping(Client client) {
try {
String parentMappings = XContentFactory.jsonBuilder()
.startObject()
.startObject(parentType)
.startObject(PROPERTIES)
.startObject("id").field("type", INTEGER_TYPE).endObject()
.startObject("basicproperty").field("type", INTEGER_TYPE).endObject()
.startObject("property").field("type", INTEGER_TYPE).endObject()
.startObject("mutation").field("type", INTEGER_TYPE).endObject()
.startObject("vacancyremission").field("type", INTEGER_TYPE).endObject()
.startObject("id_demand").field("type", INTEGER_TYPE).endObject()
.startObject("transactiontype").field("tpe", STRING_TYPE).field(INDEX, FieldIndex.not_analyzed).endObject()
.startObject("zone").field("type", INTEGER_TYPE).endObject()
.startObject("ward").field("type", INTEGER_TYPE).endObject()
.startObject("street").field("type", INTEGER_TYPE).endObject()
.startObject("block").field("type", INTEGER_TYPE).endObject()
.startObject("locality").field("type", INTEGER_TYPE).endObject()
.startObject("electionward").field("type", INTEGER_TYPE).endObject()
.startObject("ownersname").field("type", STRING_TYPE).field(INDEX, FieldIndex.not_analyzed).endObject()
.startObject("doorno").field("type", STRING_TYPE).field(INDEX, FieldIndex.not_analyzed).endObject()
.startObject("propertytype").field("type", INTEGER_TYPE).endObject()
.startObject("usage").field("type", STRING_TYPE).field(INDEX, FieldIndex.not_analyzed).endObject()
.startObject("tax_effdate").field("type", "date").endObject()
.startObject("transaction_date").field("type", "date").endObject()
.endObject().endObject().endObject()
.string();

when starting server I got exception--Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No id property found for class

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.