Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article you will find:

...

You can add additional data sources from Advanced Settings → Hawksearch -> DataSources submenu (your-site-domain/Sitefinity/Administration/Settings/Advanced). You should provide the Data Source with Name, Api Key, Url, Severity and Timeout interval.

...

The Data Source must expose a POST endpoint, which will receive and object with Id RequestId and IndexName from the request body.

Code Block
METHOD: POST
{
  "RequestId": "558ad504-9b2d-4b67-be4f-7ab9ed3028fb",
  "IndexName": "hawksearchindexname.20201020.112252.suffix"
} 

When the indexing process is completed, the service must send a PUT request to your-site-domain/hawk/index/status containing the service Id RequestId and the index name IndexName received from the first request, and Status which notifies if the indexing is successful or failed.

...

Code Block
METHOD: PUT
{
  "RequestId":"558ad504-9b2d-4b67-be4f-7ab9ed3028fb",
  "ApiKey":"1ABC528F-3C50-40A8-A86B-C2A2384BE8C5",
  "IndexName":"hawksearchindexname.20201020.112252.suffix",
  "Action":"all",
  "Status":"successful",
  "ObjectType":"status",
  "Message":"Rebuild Hawksearch Index finished successfully"
}

...