https://github.com/findify/findify-index-checker
The purpose of Findify Index Checker is to find if index exists for a given merchant as quickly and as efficiently as possible.
https://github.com/findify/findify-index-checker
Last synced: about 1 year ago
JSON representation
The purpose of Findify Index Checker is to find if index exists for a given merchant as quickly and as efficiently as possible.
- Host: GitHub
- URL: https://github.com/findify/findify-index-checker
- Owner: findify
- Created: 2024-07-10T15:20:14.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-11T07:13:01.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T21:35:20.347Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Index Checker
The purpose of Findify Index Checker is to find if index exists for a given merchant as quickly and as efficiently as
possible. This tool is meant to be used before more expensive services such as Lucy are booted.
## Usage
```
Usage: findify-index-checker [OPTIONS] --merchant-id --pulsar-service-url --environment
Options:
-m, --merchant-id
[env: MERCHANT_ID=]
--pulsar-service-url
[env: PULSAR_SERVICE_URL=]
-e, --environment
[env: ENVIRONMENT=]
-p, --pulsar-product-topic-template
[default: persistent://findify/index-updates-product-{}/{}]
-t, --timeout
[default: 5]
-h, --help
Print help
-V, --version
Print version
```
## Example
```bash
./target/debug/findify-index-checker \
--pulsar-service-url=pulsar://pulsar.us.findify.private:6650 \
-e prod \
-m 9795 \
-t 3
Pulsar service URL: pulsar://pulsar.us.findify.private:6650, Environment: prod, Topic: persistent://findify/index-updates-product-prod/9795, Timeout: 3s
Found index (there could be more or never): 0_4_2024-05-14-135007.425
```
If the index is found, the status code is `0`; otherwise, it is `1` with error messages.
## Development
```bash
cargo run --
```
## Authors
- [Oto Brglez](https://github.com/otobrglez)