class SearchIngest::Client

Defined in:

search-ingest/client.cr

Constant Summary

API_VERSION = "v1"
BASE_PATH = "/api/search-ingest"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(uri : URI = DEFAULT_URI, request_id : String | Nil = nil, api_version : String = API_VERSION) #

[View source]

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


[View source]

Instance Method Detail

def api_version : String #

[View source]
def backfill #

Backfill data from PostgreSQL into Elasticsearch


[View source]
def close #

[View source]
def healthcheck #

[View source]
def reindex(backfill : Bool = false) #

Reindexes Elasticsearch If #backfill is true, backfill data from PostgreSQL into Elasticsearch


[View source]
def request_id : String | Nil #

Set the request_id on the client


[View source]
def request_id=(request_id : String | Nil) #

Set the request_id on the client


[View source]
def uri : URI #

[View source]
def version : PlaceOS::Model::Version #

[View source]