@@ -35,7 +35,7 @@ public void testParseValidFromInts() throws Exception {
3535 GeoHashType type = GeoHashGridTests .randomType ();
3636 int precision = GeoHashGridTests .randomPrecision (type );
3737 XContentParser stParser = createParser (JsonXContent .jsonXContent ,
38- "{\" field\" :\" my_loc\" , \" type \" :\" " + type + "\" , \" precision\" :" + precision +
38+ "{\" field\" :\" my_loc\" , \" hash_type \" :\" " + type + "\" , \" precision\" :" + precision +
3939 ", \" size\" : 500, \" shard_size\" : 550}" );
4040 XContentParser .Token token = stParser .nextToken ();
4141 assertSame (XContentParser .Token .START_OBJECT , token );
@@ -47,7 +47,7 @@ public void testParseValidFromStrings() throws Exception {
4747 GeoHashType type = GeoHashGridTests .randomType ();
4848 int precision = GeoHashGridTests .randomPrecision (type );
4949 XContentParser stParser = createParser (JsonXContent .jsonXContent ,
50- "{\" field\" :\" my_loc\" , \" type \" :\" " + type + "\" , \" precision\" :\" " + precision +
50+ "{\" field\" :\" my_loc\" , \" hash_type \" :\" " + type + "\" , \" precision\" :\" " + precision +
5151 "\" , \" size\" : \" 500\" , \" shard_size\" : \" 550\" }" );
5252 XContentParser .Token token = stParser .nextToken ();
5353 assertSame (XContentParser .Token .START_OBJECT , token );
@@ -112,7 +112,7 @@ public void testParseDistanceUnitPrecisionTooSmall() throws Exception {
112112 public void testParseErrorOnBooleanPrecision () throws Exception {
113113 GeoHashType type = GeoHashGridTests .randomType ();
114114 XContentParser stParser = createParser (JsonXContent .jsonXContent ,
115- "{\" field\" :\" my_loc\" , \" type \" :\" " + type + "\" , \" precision\" :false}" );
115+ "{\" field\" :\" my_loc\" , \" hash_type \" :\" " + type + "\" , \" precision\" :false}" );
116116 XContentParser .Token token = stParser .nextToken ();
117117 assertSame (XContentParser .Token .START_OBJECT , token );
118118 XContentParseException ex = expectThrows (XContentParseException .class ,
@@ -129,7 +129,7 @@ public void testParseErrorOnPrecisionOutOfRange() throws Exception {
129129 final GeoHashType type = GeoHashGridTests .randomType ();
130130 final int precision = GeoHashGridTests .maxPrecision (type ) + 1 ;
131131 XContentParser stParser = createParser (JsonXContent .jsonXContent ,
132- "{\" field\" :\" my_loc\" , \" type \" :\" " + type + "\" , \" precision\" :\" " + precision +"\" }" );
132+ "{\" field\" :\" my_loc\" , \" hash_type \" :\" " + type + "\" , \" precision\" :\" " + precision +"\" }" );
133133 XContentParser .Token token = stParser .nextToken ();
134134 assertSame (XContentParser .Token .START_OBJECT , token );
135135 try {
0 commit comments