Skip to content

Commit 0e4e79e

Browse files
braunsonmhonzakral
authored andcommitted
Corrected the datatype of DoubleRange
Without this change, Elasticsearch will return the following exception: elasticsearch.exceptions.RequestError: RequestError(400, 'mapper_parsing_exception', 'No handler for type [double_ranged] declared on field [my_range]’) This is because according to the documentation, this datatype is actually called `double_range` not `double_ranged`. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/range.html
1 parent cf48957 commit 0e4e79e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch_dsl/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ class LongRange(RangeField):
414414
_core_field = Long()
415415

416416
class DoubleRange(RangeField):
417-
name = 'double_ranged'
417+
name = 'double_range'
418418
_core_field = Double()
419419

420420
class DateRange(RangeField):

0 commit comments

Comments
 (0)