class SearchIngest::Client
- SearchIngest::Client
- Reference
- Object
Defined in:
search-ingest/client.crConstant Summary
-
API_VERSION =
"v1"
-
BASE_PATH =
"/api/search-ingest"
Constructors
Class Method Summary
-
.client(uri : URI = URI.parse(CLIENT_URI), request_id : String | Nil = nil, api_version : String = API_VERSION, &)
A one-shot Core client
Instance Method Summary
- #api_version : String
-
#backfill
Backfill data from PostgreSQL into Elasticsearch
- #close
- #healthcheck
-
#reindex(backfill : Bool = false)
Reindexes Elasticsearch If
#backfill
istrue
, backfill data from PostgreSQL into Elasticsearch -
#request_id : String | Nil
Set the request_id on the client
-
#request_id=(request_id : String | Nil)
Set the request_id on the client
- #uri : URI
- #version : PlaceOS::Model::Version
Constructor Detail
def self.new(uri : URI = DEFAULT_URI, request_id : String | Nil = nil, api_version : String = API_VERSION)
#
Class Method Detail
def self.client(uri : URI = URI.parse(CLIENT_URI), request_id : String | Nil = nil, api_version : String = API_VERSION, &)
#
A one-shot Core client