Versions Compared

Key

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

ElasticSearch API integration with HawkSearch is carried out by sending HawkSearch v4.0 API allows websites to send an AJAX request to Hawk whenever a when the user modifies the search parameters by changing filters, visiting landing pages or performing keyword search. The response is returned by Hawk in JSON format.
Throughout this article, we consider demo.hawksearch.com as the reference search engine.
When we send the following request to Hawk:

Code Block
languagejson
POST https://searchapi.hawksearch.com/api/v2/search HTTP/1.1
Content-Type: application/json
User-Agent: PostmanRuntime/7.26.3
Accept: /
Cache-Control: no-cache
Host: searchapi.hawksearch.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 75
{
 "ClientGuid" : "f51060e1c38446f0bacdf283390c37e8",
 "Keyword": "hat"
}

...