com.sksamuel.elastic4s
Type members
Classlikes
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)
- Companion:
- object
- Companion:
- object
Converts between scala types and types that Elasticsearch understands.
Converts between scala types and types that Elasticsearch understands.
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
.
Models one or more indexes, eg
Models one or more indexes, eg
- "index1"
- "index1,index2"
- "_all"
- Companion:
- object
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
.
Deprecated classlikes
Models exactly one index associated with exactly one type.
Models exactly one index associated with exactly one type.
- Companion:
- object
- Deprecated
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
- Companion:
- object
- Deprecated
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
- Companion:
- object
- Deprecated