Download OpenAPI specification:Download
This document describes the available endpoints to be used to build a search application against the new Raffle Content API.
Requests must include an X-API-KEY
header containing your api key.
X-API-KEY: 4A2436B8-4EC3-4A74-8C79-1DFAEC5C7D7D
Errors are returned in a standardized format.
{
"code: <http status code>,
"message": "detailed error message"
}
This endpoint allow you to search in the content of an index.
index_uid required | string A uid of the index to search in. |
query required | string A search query in raw text |
boosting required | string A specification of how fields a boosted, in the format `f1^n1 [f2^n2 ...]``. This is compatible with the "Query Fields" parameter in SOLR (https://solr.apache.org/guide/solr/latest/query-guide/dismax-query-parser.html#qf-query-fields-parameter) |
filter required | string A specification of how what subset of documents to search in. This is compatible with the "Filter Query" parameter in SOLR (https://solr.apache.org/guide/solr/latest/query-guide/common-query-parameters.html#fq-filter-query-parameter) |
required | Array of items A list of the fields the response should contains. |
limit | integer The maximum number of results to return. |
{- "index_uid": "my_index",
- "query": "Can you name a good book?",
- "boosting": "title^3.1 author^2",
- "filter": "published:true",
- "fields": [
- "title",
- "author",
- "published"
], - "limit": 20
}
{- "results": [
- {
- "uid": "string",
- "section": "string",
- "fields": { }
}
]
}
This endpoint allow you to create or update an index.
uid required | string A uniuqe name identifying the index |
language_code required | string An ISO 639-1 language code describing the primary language of the content in the index. |
required | object |
{- "uid": "string",
- "language_code": "string",
- "schema": {
- "fields": { }
}
}
{ }
This endpoint allow you to create a new or update an existing json document to the index.
index required | string A uid of an index |
uid required | string |
fields | object |
{- "uid": "string",
- "fields": { }
}
{- "code": 0,
- "message": "string"
}
This endpoint allow you to delete an existing json document from the index.
uid required | string A uid of a document |
index required | string A uid of an index |
{- "code": 0,
- "message": "string"
}