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.
git clone https://github.com/nnstd/bright.git cd bright go mod download go build -o search-db . ./search-db
docker pull ghcr.io/nnstd/bright:latest docker run -p 3000:3000 -v $(pwd)/data:/root/data ghcr.io/nnstd/bright:latest
The server starts on port 3000 by default.
3000
Data is stored in the ./data directory, which contains:
./data
configs.json
curl -X POST "http://localhost:3000/indexes?id=myindex&primaryKey=id"
curl -X POST "http://localhost:3000/indexes/myindex/documents" \ -H "Content-Type: application/json" \ -d '{"id": "1", "title": "Hello World", "content": "This is my first document"}'
curl -X POST "http://localhost:3000/indexes/myindex/searches?q=hello"
Run the included test script to verify your installation:
./test-api.sh
This script tests all API endpoints and demonstrates common use cases.