Move from CamelCase to '_' casing, closes #116.

This commit is contained in:
kimchy 2010-04-04 17:41:40 +03:00
parent 3b5b4b4c3a
commit ff1fa9daad
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}