Overview
KeyMatch API is an API for managing Fess key match settings (linking search keywords to results). You can display specific documents at the top for specific keywords.
Base URL
Endpoint List
| Method | Path | Description |
|---|---|---|
| GET | /settings | List key matches |
| GET | /setting/{id} | Get key match |
| POST | /setting | Create key match |
| PUT | /setting | Update key match |
| DELETE | /setting/{id} | Delete key match |
List Key Matches
Request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
size | Integer | No | Number of items per page (default: 25; the value of paging.page.size) |
page | Integer | No | Page number (starts from 1, default: 1) |
term | String | No | Filter by search keyword (wildcard match) |
query | String | No | Filter by match condition query (wildcard match) |
Response
Note
total contains the total number of records matching the filter conditions (not the count of items on the current page). In addition to the fields above, each settings object may include virtualHost, createdBy, createdTime, updatedBy, and updatedTime when values are set.
Get Key Match
Request
Response
Note
versionNo is the version number used for optimistic locking. When updating a key match, include the versionNo obtained from this response in the request body. An error is returned if the specified ID does not exist.
Create Key Match
Request
Request Body
Field Description
| Field | Type | Required | Description |
|---|---|---|---|
term | String | Yes | Search keyword (maximum 100 characters) |
query | String | Yes | Match condition query (maximum length follows the value of form.admin.max.input.size) |
maxSize | Integer | Yes | Maximum display count (integer of 0 or greater; form initial value: 10) |
boost | Float | Yes | Boost value (form initial value: 100.0) |
virtualHost | String | No | Virtual host name (maximum 1000 characters; specify when switching key matches per virtual host) |
Note
maxSize and boost are required when using the API. The initial values are those shown in the admin console form and are not applied via the API. Omitting them results in a validation error. Note that createdBy and createdTime are overwritten by the server even if specified in the request.
Response
Update Key Match
Request
Request Body
Field Description
In addition to the fields used for creation (term, query, maxSize, boost, virtualHost), specify the following fields.
| Field | Type | Required | Description |
|---|---|---|---|
id | String | Yes | ID of the key match to update (maximum 1000 characters) |
versionNo | Integer | Yes | Version number for optimistic locking; specify the value obtained when retrieving the record |
Response
Delete Key Match
Request
Response
Usage Examples
Create Product Page Key Match
Support Page Key Match
Reference
Admin API Overview - Admin API Overview
ElevateWord API - Elevate Word API
Key Match - Key Match Management Guide