Skip to content

Commit 2c099d5

Browse files
committed
Adding RankFeature and RankFeature
thank you, @inkhey!
1 parent 38f2f5e commit 2c099d5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

elasticsearch_dsl/field.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ def __init__(self, scaling_factor, *args, **kwargs):
309309
class Double(Float):
310310
name = 'double'
311311

312+
class RankFeature(Float):
313+
name = 'rank_feature'
314+
312315
class Integer(Field):
313316
name = 'integer'
314317
_coerce = True

elasticsearch_dsl/query.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ class FuzzyLikeThis(Query):
286286
class FuzzyLikeThisField(Query):
287287
name = 'fuzzy_like_this_field'
288288

289+
class RankFeature(Query):
290+
name = 'rank_feature'
291+
289292
class DistanceFeature(Query):
290293
name = 'distance_feature'
291294

0 commit comments

Comments
 (0)