@forloop This works generally, but for some indexes the call fails. I am on version 1.7.6 so that might be the problem.
For instance, client.GetIndex(name); returns the following error:
Could not convert string to boolean: no. Path 'index', line 1, position 181.
Running GET /valuations_636727374057800495 yields the following, so something can't be parsed properly.
{
"valuations_636727374057800495": {
"aliases": {
"valuations": {}
},
"mappings": {
"propertyvaluation": {
"properties": {
"confidenceScore": {
"type": "integer",
"doc_values": true
},
"estimatedMax": {
"type": "integer",
"index": "no"
},
"estimatedMin": {
"type": "integer",
"index": "no"
},
"estimatedValue": {
"type": "integer",
"index": "no"
},
"estimationDate": {
"type": "date",
"doc_values": true,
"format": "dateOptionalTime"
},
"fipsMuniCode": {
"type": "short",
"doc_values": true
},
"fipsStateCode": {
"type": "byte",
"doc_values": true
},
"fsdScore": {
"type": "integer",
"index": "no"
},
"latitude": {
"type": "float",
"doc_values": true
},
"longitude": {
"type": "float",
"doc_values": true
},
"parcelNumber": {
"type": "string",
"index": "not_analyzed"
},
"pin": {
"type": "geo_point",
"fielddata": {
"loading": "eager"
},
"lat_lon": true
},
"propertyId": {
"type": "double",
"doc_values": true
},
"propertyValuationHistoryPoints": {
"properties": {
"date": {
"type": "date",
"index": "no",
"format": "dateOptionalTime"
},
"value": {
"type": "integer",
"index": "no"
}
}
},
"trustClass": {
"type": "string",
"index": "no"
}
}
}
},
"settings": {
"index": {
"creation_date": "1537158527410",
"number_of_shards": "6",
"number_of_replicas": "1",
"version": {
"created": "1070699"
},
"uuid": "T06-C4TZRPKmKdaGc91HOw"
}
},
"warmers": {}
}
}