Detailed documentation, Postman collection and sample data will be provided to BETA users after being accepted into the program

Getting Started

1. Get your API Access

During our BETA period, we will only provide API keys to a select few applicants. To request access to our BETA API, please visit this page.

2. Create (or Get) an Index

To create an index or get info on an existing an index named dummy from the example node named your-brand

curl -X GET 'https://your-brand.darashsearch.com/index/create/dummy'

3. Add your data to the index

Prepare your data in JSON format, then save it to a file (e.g. data.json)


  ...
  {"id": 123, "title": "foo", ...},
  {"id": 124, "title": "bar", ...},
  ]

Add data.json to the index

curl \
-X POST 'https://your-brand.darashsearch.com/index/populate/dummy' \
-H 'Content-Type: application/json' \
--data-binary @data.json

4. Search Something

curl \
  -X POST 'https://your-brand.darashsearch.com/index/search/dummy' \
  -H 'Content-Type: application/json' \
  --data-binary '{ "q": "foo" }'

5. Filter &anp; Sort

curl \
  -X POST 'https://your-brand.darashsearch.com/index/search/dummy' \
  -H 'Content-Type: application/json' \
  --data-binary '{ "q": "bar", "sort": ["id:desc"], "filter": "year = 1999" }'