p

com.sksamuel

elastic4s

package elastic4s

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class Adjustment(value: Int, unit: TimeUnit) extends Product with Serializable
  2. trait AggReader[T] extends AnyRef
  3. 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)

  4. case class ElasticDateMath(base: String, adjustments: Seq[Adjustment] = Nil, rounding: Option[TimeUnit] = None) extends ElasticDate with Product with Serializable
  5. 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
  6. case class FailedShard(shard: Int, index: Option[String], node: Option[String], reason: Option[ElasticError]) extends Product with Serializable
  7. trait Hit extends AnyRef

    A common trait for Get, MultiGet, Search and MultiSearch results to provide common functionality for the HitReader typeclass.

  8. trait HitReader[T] extends AnyRef
  9. case class Index(name: String) extends IndexLike with Product with Serializable
  10. trait IndexLike extends IndexesLike
  11. 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 or elastic4s-json-circe.

  12. case class Indexes(values: Seq[String]) extends IndexesLike with Product with Serializable

    Models one or more indexes, eg - "index1" - "index1,index2" - "_all"

  13. trait IndexesLike extends AnyRef
  14. 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.

  15. trait Show[T] extends Serializable
  16. abstract class TimeUnit extends AnyRef
  17. case class TimestampElasticDate(timestamp: Long) extends ElasticDate with Product with Serializable
  18. case class UnparsedElasticDate(value: String) extends ElasticDate with Product with Serializable
  19. 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

  20. 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

  21. 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

  22. 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

  1. object Days extends TimeUnit with Product with Serializable
  2. object ElasticDate
  3. object ElasticError extends Serializable
  4. object FieldsMapper

    Converts between scala types and types that Elasticsearch understands.

  5. object Hours extends TimeUnit with Product with Serializable
  6. object Index extends Serializable
  7. object IndexLike
  8. object Indexes extends Serializable
  9. object IndexesAndType extends Serializable
  10. object IndexesLike
  11. object Minutes extends TimeUnit with Product with Serializable
  12. object Months extends TimeUnit with Product with Serializable
  13. object Seconds extends TimeUnit with Product with Serializable
  14. object Show extends Serializable
  15. object Weeks extends TimeUnit with Product with Serializable
  16. object Years extends TimeUnit with Product with Serializable

Deprecated Value Members

  1. object IndexAndType extends Serializable
    Annotations
    @deprecated
    Deprecated

    (Since version 7.0) types are deprecated now

  2. object IndexAndTypes extends Serializable
    Annotations
    @deprecated
    Deprecated

    (Since version 7.0) types are deprecated now

  3. object IndexesAndTypes extends Serializable
    Annotations
    @deprecated
    Deprecated

    (Since version 7.0) types are deprecated now

Ungrouped