Skip to main content

Index Documents

Endpoint

POST https://api-indexly.ripplefy.net/model/index

Payload

ParameterTypeDescription
dataarrayAn array of documents matching the index schema.

Example

curl --location 'https://api-indexly.ripplefy.net/model/index' \
--header 'Content-Type: application/json' \
--data '{
"data": [
{
"id": "{id}",
"name": "{name}",
other fields...
},
...
]
}'

Search Documents

Endpoint

POST https://api-indexly.ripplefy.net/index/{index_name}/search

Payload

ParameterTypeDescription
queryobjectJSON object with search criteria.
sortarraySort criteria for search results.
limitnumberMaximum number of search results to return.
fieldsarrayFields to be returned in the search results.
next_cursorstringCursor for pagination.

Example

curl --location 'https://api-indexly.ripplefy.net/index/{index_name}/search' \
--header 'Content-Type: application/json' \
--data '{
"query": {
"name": ["{name1}", "{name2}"],
...
},
"sort": [{"created_at": "desc"}],
...
}'

Metrics and Aggregation Request Endpoint

URL: /index/{index_name}/search HTTP Method: POST Headers: Content-Type: application/json Payload

Parameter Type Description query object JSON object with search criteria. sort array Sort criteria for search results. aggregate object Aggregation metrics for certain fields. Response Returns a 200 OK with metrics and aggregated data.

Example cURL Command

bash Copy code curl --location 'http://localhost:8080/index/nfts/search' \ --header 'Content-Type: application/json' \ --data '{ "query": { "Name": ["CryptoArt", "SuperRare NFT"], ... }, "sort": [{"Name": "asc"}, {"Price": "desc"}], "aggregate": { "Price": ["avg", "min", "max", "count"], ... }, ... }'