This document describes the v2 Cache 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).
Fetching a Cached Document
Request
| HTTP Method | GET |
| Endpoint | /api/v2/cache/{docId} |
Returns the cached (highlight-applied) HTML of a document.
When app.login.required=true and the caller is anonymous, it returns auth_required (401).
Request Parameters
docId | Document identifier (path, required, pattern ^[A-Za-z0-9_-]+$). |
hq | Highlight query term (query). Can be specified multiple times (array). |
Table: Request Parameters
Response
On success (200), the following fields are returned directly under response in the common envelope.
Each field is described below.
Table: Response Fields
Error Response
For details on the error model, see API Overview. The HTTP statuses returned by this endpoint are as follows.
Table: Error Response