diff --git a/deploy/config.yml b/deploy/config.yml index 47a5896..472a38a 100644 --- a/deploy/config.yml +++ b/deploy/config.yml @@ -12,7 +12,7 @@ source: database: dispute_explorer meilisearch: api_url: http://localhost:7700 - api_key: 2938b40b6c8a907ca74408c51951bd136e50c3f86d6d85a239e83745a89bdf31 + api_key: db6989adb79a1b5b8cfed39f7d8b58274dca9063d3930aeb748282aada58a1fe sync: - table: dispute_game index: disputegames diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index 0254b22..95a0fce 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -3,7 +3,7 @@ version: "3" services: mysql: container_name: mysql - image: mysql:8.4.2 + image: mysql:8.0.28 environment: MYSQL_ROOT_PASSWORD: "root" restart: always diff --git a/deploy/start.sh b/deploy/start.sh index 4314b24..b15c8b4 100755 --- a/deploy/start.sh +++ b/deploy/start.sh @@ -55,4 +55,19 @@ echo "$sortEventRsp" sortGamesUrl="http://localhost:7700/indexes/disputegames/settings/sortable-attributes" sortGamesRsp=$(curl -X PUT $sortGamesUrl -H "Content-Type: application/json" -H "Authorization: Bearer $bearer_token" -d "$sortable_attributes") -echo $sortGamesRsp +echo "$sortGamesRsp" + +maxEventTotalHits='{ "maxTotalHits": 100000 }' +totalEventHitsUrl="http://localhost:7700/indexes/syncevents/settings/sortable-attributes" +maxEventsRsp=$(curl -X PATCH $totalEventHitsUrl -H "Content-Type: application/json" -H "Authorization: Bearer $bearer_token" -d "$maxEventTotalHits") +echo "$maxEventsRsp" + +maxGamesTotalHits='{ "maxTotalHits": 100000 }' +totalGamesHitsUrl="http://localhost:7700/indexes/disputegames/settings/sortable-attributes" +maxGamesRsp=$(curl -X PATCH $totalGamesHitsUrl -H "Content-Type: application/json" -H "Authorization: Bearer $bearer_token" -d "$maxGamesTotalHits") +echo "$maxGamesRsp" + +setFilter='["id","block_number","get_len_status","claim_data_len"]' +setFilterUrl="http://localhost:7700/indexes/disputegames/settings/filterable-attributes" +setFilterRsp=$(curl -X PUT $setFilterUrl -H "Content-Type: application/json" -H "Authorization: Bearer $bearer_token" -d "$setFilter") +echo "$setFilterRsp"