package elastic4s
- Alphabetic
- Public
- All
Type Members
- case class Adjustment(value: Int, unit: TimeUnit) extends Product with Serializable
- trait AggReader[T] extends AnyRef
-
trait
ElasticDate extends AnyRef
Implementations of this trait are used to represent dates and date math in elasticsearch requests.
Implementations of this trait are used to represent dates and date math in elasticsearch requests.
see https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#date-math
There are three types of elastic date you can create.
The first is just a wrapped string with no extra help: UnparsedElasticDate("mydate||/d")
The second is a wrapped timestamp: TimestampElasticDate(1113232321L)
The third and most useful is the ElasticDateMath which allows you to programatically add or subtract values, as well as add a rounding, and it will create the appropriate date string for you. For example, ElasticDate.now.minus(3, Months).add(1, Days).rounding(Weeks)
- case class ElasticDateMath(base: String, adjustments: Seq[Adjustment] = Nil, rounding: Option[TimeUnit] = None) extends ElasticDate with Product with Serializable
- case class ElasticError(type: String, reason: String, indexUuid: Option[String], index: Option[String], shard: Option[String], rootCause: Seq[ElasticError], causedBy: Option[CausedBy], phase: Option[String] = None, grouped: Option[Boolean] = None, failedShards: Seq[FailedShard] = Seq()) extends Product with Serializable
- case class FailedShard(shard: Int, index: Option[String], node: Option[String], reason: Option[ElasticError]) extends Product with Serializable
-
trait
Hit extends AnyRef
A common trait for Get, MultiGet, Search and MultiSearch results to provide common functionality for the HitReader typeclass.
- trait HitReader[T] extends AnyRef
- case class Index(name: String) extends IndexLike with Product with Serializable
- trait IndexLike extends IndexesLike
-
trait
Indexable[T] extends AnyRef
A typeclass that is used by index/update requests to convert a scala type into a document that elasticsearch can use.
A typeclass that is used by index/update requests to convert a scala type into a document that elasticsearch can use.
Indexables can be automatically derived if you add a deriving module like
elastic4s-json-jackson
orelastic4s-json-circe
. -
case class
Indexes(values: Seq[String]) extends IndexesLike with Product with Serializable
Models one or more indexes, eg - "index1" - "index1,index2" - "_all"
- trait IndexesLike extends AnyRef
-
trait
ParamSerializer[T] extends AnyRef
A typeclass that is used to serialize the parameters sent to a com.sksamuel.elastic4s.requests.script.Script.
A typeclass that is used to serialize the parameters sent to a com.sksamuel.elastic4s.requests.script.Script.
ParamSerializers can be automatically derived if you add a module like
elastic4s-json-spray
. - trait Show[T] extends Serializable
- abstract class TimeUnit extends AnyRef
- case class TimestampElasticDate(timestamp: Long) extends ElasticDate with Product with Serializable
- case class UnparsedElasticDate(value: String) extends ElasticDate with Product with Serializable
-
case class
IndexAndType(index: String, type: String) extends IndexLike with Product with Serializable
Models exactly one index associated with exactly one type.
Models exactly one index associated with exactly one type.
- Annotations
- @deprecated
- Deprecated
(Since version 7.0) types are deprecated now
-
case class
IndexAndTypes(index: String, types: Seq[String]) extends IndexLike with Product with Serializable
Models one index associated with one or more types.
Models one index associated with one or more types.
So for example, - index1/type1 - index1/type1,type2
- Annotations
- @deprecated
- Deprecated
(Since version 7.0) types are deprecated now
-
case class
IndexesAndType(indexes: Seq[String], type: Option[String] = None) extends Product with Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 7.0) types are deprecated now
-
case class
IndexesAndTypes(indexes: Seq[String], types: Seq[String]) extends IndexesLike with Product with Serializable
Models one or more indexes associated with zero or more types.
Models one or more indexes associated with zero or more types.
So for example, - index1 - index1/index2 - index1/type1 - index1/type1,type2 - index1,index2/type1 - index1,index2/type1,type2
- Annotations
- @deprecated
- Deprecated
(Since version 7.0) types are deprecated now
Value Members
- object Days extends TimeUnit with Product with Serializable
- object ElasticDate
- object ElasticError extends Serializable
-
object
FieldsMapper
Converts between scala types and types that Elasticsearch understands.
- object Hours extends TimeUnit with Product with Serializable
- object Index extends Serializable
- object IndexLike
- object Indexes extends Serializable
- object IndexesAndType extends Serializable
- object IndexesLike
- object Minutes extends TimeUnit with Product with Serializable
- object Months extends TimeUnit with Product with Serializable
- object Seconds extends TimeUnit with Product with Serializable
- object Show extends Serializable
- object Weeks extends TimeUnit with Product with Serializable
- object Years extends TimeUnit with Product with Serializable
Deprecated Value Members
-
object
IndexAndType extends Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 7.0) types are deprecated now
-
object
IndexAndTypes extends Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 7.0) types are deprecated now
-
object
IndexesAndTypes extends Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 7.0) types are deprecated now