2023-08-15 06:16:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Set your MeiliSearch API key
|
|
|
|
|
API_KEY="YoUrV3ry-S3cur3-aP1k3Y"
|
|
|
|
|
|
|
|
|
|
# Set your MeiliSearch instance URL
|
|
|
|
|
MEILISEARCH_URL="http://127.0.0.1:7700"
|
|
|
|
|
|
|
|
|
|
# Set the index name
|
2023-08-22 09:33:34 +00:00
|
|
|
INDEX_NAME="products_index"
|
2023-08-15 06:16:29 +00:00
|
|
|
|
|
|
|
|
# Get index settings using cURL
|
|
|
|
|
curl "$MEILISEARCH_URL/indexes/$INDEX_NAME/settings" \
|
|
|
|
|
-H "Content-Type: application/json" \
|
|
|
|
|
-H "Authorization: Bearer $API_KEY"
|