This document describes the v2 Click Log API of Fess. For the common response envelope, error model, and CSRF, see API Overview.
The base URL is http://<Server Name>/api/v2/ (local environment example: http://localhost:8080/api/v2).
Recording a Click
Request
| HTTP Method | POST |
| Endpoint | /api/v2/click |
Records a search result click in the search log. For anonymous callers and installations where the search log feature is disabled, a success response with logged: false is returned (no error).
Since this is a state-changing request, the X-Fess-CSRF-Token header is required (see API Overview).
Request Body
Send a JSON (ClickRequest) with Content-Type: application/json containing the following fields.
Table: Request Body
Response
On success (200), the following fields are returned directly under response in the common envelope.
Each field is described below.
ok | Always true (bool). |
logged | false (bool) when search log persistence is disabled or the caller is anonymous. A 200 response is still returned in that case. |
Table: Response Fields
Note
logged: true indicates that the click was accepted into the search log queue. Persistence is performed asynchronously.
Error Response
For details on the error model, see API Overview. The HTTP statuses returned by this endpoint are as follows.
Table: Error Response