Skip to content

Commit

Permalink
Merge branch 'develop' into fix/support-center-search
Browse files Browse the repository at this point in the history
  • Loading branch information
tobySolutions authored Sep 25, 2024
2 parents ea675fb + a638cf8 commit da3c7c5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/search-indexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: 🚜 Search (Indexer)
on:
repository_dispatch:
types: release-by-develop-hash-completed
workflow_dispatch:
push:
branches: [ main ]

jobs:
meilisearch:
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ This repository contains the source code and assets for the Fleek.xyz website, w
- [Production Service Setup](#production-service-setup)
- [Search](#🔎-search)
- [Health Check](#health-check)
- [Indexer](#indexer)
- [Indexer](#indexer)
- [Put markdown content](#put-markdown-content-development)
- [Query via cURL](#query-via-curl)
- [Multi-Index Search](#multi-index-search)
- [Delete Indexes](#💣-delete-indexes)
- [Images (optimization)](#-images-optimization)
- [Manual Indexation](#manual-indexation-cicd)
- [Images (optimization)](#-images-optimization)
- [Migration](#-migration)
- [Migrate Gatsby content](#migrate-gatsby-content)
- [Custom data](#custom-data)
Expand Down Expand Up @@ -845,7 +846,7 @@ curl \
-X GET '<PROTOCOL>://<ADDRESS>:<PORT>/health'
```

### Indexer
## Indexer

The Indexer's job referred to as indexation is the process of organizing and storing data in a structured manner to facilitate efficient search and retrieval.

Expand Down Expand Up @@ -928,6 +929,16 @@ npm run search:serve

⚠️ You'll see a warning message "No master key was found" that can be ignored for local environment development work. If for some reason you want to have a master key, modify the `search:serve` script to include it.

### Manual Indexation (CI/CD)

The indexation service should trigger on `push` to `main` branch. Alternatively, the repo admin can trigger the job manually.

1) Open the Job runner [here](https://github.com/fleek-platform/website/actions/workflows/search-indexer.yml)

2) Locate the row "This workflow has a workflow_dispatch event trigger." and open the **Run workflow** dropdown. In the option "Use workflow from" select `main` branch.

The Job will index data that exists in the selected `main` branch. Learn how to release to production (main branch) [here](#🚀-release-to-production).

## 📸 Images (Optimization)

The build process can optimize the images but that requires the user to use the correct image components. Use the instructions provided to optimize the images.
Expand Down

0 comments on commit da3c7c5

Please sign in to comment.