We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The Client constructor can take the following parameters:
Client
url
api_key
options
timeout
1s
max_retries
0
Here is the basic way to use the Client:
client = MeiliSearch::Client.new($URL, $API_KEY)
The default timeout is 1 second. You might need to increase this timeout to complete larger indexing requests:
MeiliSearch::Client.new($URL, $MASTER_KEY, timeout: 10) # or MeiliSearch::HTTPRequest.default_timeout(10)
To set a number of retries:
client = MeiliSearch::Client.new($URL, $MASTER_KEY, max_retries: 2)