Index Profiles APIFusion Indexing APIs
These endpoints are used to manage index profiles. This includes the Index Profiles API and the Index Profiles CRUD API.
For more information, view the API specification.
Index Profiles API
The Index Profiles API is primarily used for gathering status information, such as checking if the indexing service is healthy or debugging the indexing process. To perform a simple service check, send an HTTP GET
request to https://FUSION_HOST/api/index/status
:
curl --request GET \
--url https://FUSION_HOST/api/index/status \
--header 'Accept: application/json' \
--header 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM='
You can also use it to send documents directly to an index profile for indexing.
Index Profiles CRUD API
As the name suggests, the Index Profiles CRUD API is used for create, read, update, and delete operations. You can use this API to see what index profiles exist, create new index profiles, fetch the configuration details of an existing index profile, or update or delete an existing index profile.
To see what index profiles exist, send an HTTP GET
request to https://FUSION_HOST/api/index-profiles
to get the full list:
curl --request GET \
--url https://FUSION_HOST/api/index-profiles \
--header 'Accept: application/json' \
--header 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM='
The response body includes basic details of each index profile:
[{
"id" : "EnterpriseSearch",
"indexPipeline" : "EnterpriseSearch",
"collection" : "EnterpriseSearch",
"parser" : "EnterpriseSearch",
"params" : [ ]
}, {
"id" : "quickstart",
"indexPipeline" : "quickstart",
"collection" : "quickstart",
"parser" : "quickstart",
"params" : [ ]
}, {
"id" : "Documentation",
"indexPipeline" : "Documentation",
"collection" : "Documentation",
"parser" : "Documentation",
"params" : [ ]
}]
To create a new index profile, use this format in the body of an HTTP POST
request to https://FUSION_HOST/api/index-profiles?context=app:APP_NAME
:
curl --request POST \
--url 'https://FUSION_HOST/api/index-profiles?context=app:SiteSearch' \
--header 'Accept: application/json' \
--header 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \
--header 'Content-Type: application/json' \
--data '{
"id": "SiteSearch",
"indexPipeline": "newSiteSearchProfile",
"collection": "SiteSearch",
"parser": "SiteSearch"
}'
Remember to specify which app you’re creating the index profile for by adding the parameter |