Implementations of this trait are used to represent dates and date math in elasticsearch requests.
A common trait for Get, MultiGet, Search and MultiSearch API results so that the HitReader typeclass can unmarshall results from any of those.
Models exactly one index associated with exactly one type.
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
A Typeclass that is used by index requests to convert a type into a document for use by Elasticsearch
Models one or more indexes, eg - "index1" - "index1,index2" - "_all"
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
Uri used to connect to an Elasticsearch cluster.
Uri used to connect to an Elasticsearch cluster. The general format is
http(s)://host:port),host:port)?querystring
Multiple host:port combinations can be specified, seperated by commas. Options can be specified using standard uri query string syntax, eg cluster.name=superman
To use HTTPS when using the HTTP client, add ssl=true to the query parameters.
(Since version 6.3.3) Use ElasticNodeEndpoint
Converts between scala types and types that Elasticsearch understands.
(Since version 6.3.3) Use ElasticNodeEndpoint
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)