@@ -141,7 +141,7 @@ private[elasticsearch] final case class IntervalFuzzy[S](
141141 transpositions.map(" transpositions" -> _.toJson),
142142 fuzziness.map(" fuzziness" -> _.toJson),
143143 analyzer.map(" analyzer" -> _.toJson),
144- useField.map(" use_field" -> _.toString. toJson)
144+ useField.map(" use_field" -> _.toJson)
145145 ).flatten: _*
146146 )
147147 )
@@ -178,7 +178,7 @@ private[elasticsearch] final case class IntervalMatch[S](
178178 Chunk (
179179 Some (" query" -> Str (query)),
180180 analyzer.map(" analyzer" -> _.toJson),
181- useField.map(" use_field" -> _.toString. toJson),
181+ useField.map(" use_field" -> _.toJson),
182182 maxGaps.map(" max_gaps" -> _.toJson),
183183 ordered.map(" ordered" -> _.toJson),
184184 filter.map(" filter" -> _.toJson)
@@ -207,7 +207,7 @@ private[elasticsearch] final case class IntervalPrefix[S](
207207 Chunk (
208208 Some (" prefix" -> Str (prefix)),
209209 analyzer.map(a => " analyzer" -> Str (a)),
210- useField.map(" use_field" -> _.toString. toJson)
210+ useField.map(" use_field" -> _.toJson)
211211 ).flatten: _*
212212 )
213213 )
@@ -251,7 +251,7 @@ private[elasticsearch] final case class IntervalRange[S](
251251 lower.map(" gte" -> _.toJson),
252252 upper.map(" lte" -> _.toJson),
253253 analyzer.map(" analyzer" -> Str (_)),
254- useField.map(" use_field" -> _.toString. toJson)
254+ useField.map(" use_field" -> _.toJson)
255255 ).flatten: _*
256256 )
257257 )
@@ -277,7 +277,7 @@ private[elasticsearch] final case class IntervalRegexp[S](
277277 Chunk (
278278 Some (" pattern" -> pattern.toJson(None )),
279279 analyzer.map(" analyzer" -> _.toJson),
280- useField.map(" use_field" -> _.toString. toJson)
280+ useField.map(" use_field" -> _.toJson)
281281 ).flatten: _*
282282 )
283283 )
@@ -303,7 +303,7 @@ private[elasticsearch] final case class IntervalWildcard[S](
303303 Chunk (
304304 Some (" pattern" -> pattern.toJson),
305305 analyzer.map(" analyzer" -> _.toJson),
306- useField.map(" use_field" -> _.toString. toJson)
306+ useField.map(" use_field" -> _.toJson)
307307 ).flatten: _*
308308 )
309309 )
0 commit comments