-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Unsigned Long Field Type (#2482)
* local test / inital idea for unsigned long field type * removed range - not actual type and added unsigned long string * needed to update NumberFieldBuilderFn with string * fixed compilation errors from typos like elastic4s somehow got changed to elastic5s * typos, typos everywhere... double trippled checked with the tests
- Loading branch information
Showing
5 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/fields/UnsignedLongField.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.sksamuel.elastic4s.fields | ||
|
||
case class UnsignedLongField(name: String, | ||
boost: Option[Double] = None, | ||
coerce: Option[Boolean] = None, | ||
copyTo: Seq[String] = Nil, | ||
docValues: Option[Boolean] = None, | ||
ignoreMalformed: Option[Boolean] = None, | ||
index: Option[Boolean] = None, | ||
store: Option[Boolean] = None, | ||
nullValue: Option[Long] = None, | ||
meta: Map[String, Any] = Map.empty) extends NumberField[Long] { | ||
override def `type`: String = "unsigned_long" | ||
} |
14 changes: 14 additions & 0 deletions
14
elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/fields/UnsignedLongStringField.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.sksamuel.elastic4s.fields | ||
|
||
case class UnsignedLongStringField(name: String, | ||
boost: Option[Double] = None, | ||
coerce: Option[Boolean] = None, | ||
copyTo: Seq[String] = Nil, | ||
docValues: Option[Boolean] = None, | ||
ignoreMalformed: Option[Boolean] = None, | ||
index: Option[Boolean] = None, | ||
store: Option[Boolean] = None, | ||
nullValue: Option[String] = None, | ||
meta: Map[String, Any] = Map.empty) extends NumberField[String] { | ||
override def `type`: String = "unsigned_long" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// DO NOT EDIT! This file is auto-generated. | ||
// This file enables sbt-bloop to create bloop config files. | ||
|
||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.3") |