Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 602 Bytes

README.md

File metadata and controls

29 lines (15 loc) · 602 Bytes

Experimental version of AcoustID index

Building

Building from source code:

zig build

Running tests:

zig build test --summary all

Using via HTTP API

Create index:

curl -XPUT -v http://localhost:8080/1/_update

Add a fingerprint:

curl -XPOST -d '{"changes": [{"insert": {"id": 1, "hashes": [1,2,3]}}]}' -v http://localhost:8080/1/_update

Delete a fingerprint:

curl -XPOST -d '{"changes": [{"delete": {"id": 2}}]}' -v http://localhost:8080/1/_update

Search for a fingerprint:

curl -XPOST -d '{"query": [1,2,3], "timeout": 10}' -v http://localhost:8080/_search