Move from CamelCase to '_' casing, closes #116.
This commit is contained in:
parent
3b5b4b4c3a
commit
ff1fa9daad
|
@ -260,7 +260,7 @@ public class MetaData implements Iterable<IndexMetaData> {
|
|||
|
||||
public static void toJson(MetaData metaData, JsonBuilder builder, ToJson.Params params) throws IOException {
|
||||
builder.startObject("meta-data");
|
||||
builder.field("maxNumberOfShardsPerNode", metaData.maxNumberOfShardsPerNode());
|
||||
builder.field("max_number_of_shards_per_node", metaData.maxNumberOfShardsPerNode());
|
||||
|
||||
builder.startObject("indices");
|
||||
for (IndexMetaData indexMetaData : metaData) {
|
||||
|
@ -286,7 +286,7 @@ public class MetaData implements Iterable<IndexMetaData> {
|
|||
}
|
||||
}
|
||||
} else if (token == JsonToken.VALUE_NUMBER_INT) {
|
||||
if ("maxNumberOfShardsPerNode".equals(currentFieldName)) {
|
||||
if ("max_number_of_shards_per_node".equals(currentFieldName)) {
|
||||
builder.maxNumberOfShardsPerNode(jp.getIntValue());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue