Overview
BoostDoc API is an API for managing Fess document boost settings. You can adjust search ranking for documents matching specific conditions.
Base URL
Endpoint List
| Method | Path | Description |
|---|---|---|
| GET/PUT | /settings | List document boosts |
| GET | /setting/{id} | Get document boost |
| POST | /setting | Create document boost |
| PUT | /setting | Update document boost |
| DELETE | /setting/{id} | Delete document boost |
List Document Boosts
Request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
size | Integer | No | Number of items per page (default: 20) |
page | Integer | No | Page number (starts from 0) |
Response
Get Document Boost
Request
Response
Create Document Boost
Request
Request Body
Field Description
| Field | Required | Description |
|---|---|---|
urlExpr | Yes | URL regex pattern |
boostExpr | Yes | Boost expression (number or expression) |
sortOrder | No | Application order |
Response
Update Document Boost
Request
Request Body
Response
Delete Document Boost
Request
Response
Boost Expression Examples
| Boost Expression | Description |
|---|---|
2.0 | Fixed value boost |
doc['boost'].value * 2 | Double the document’s boost value |
Math.log(doc['click_count'].value + 1) | Logarithmic scale boost based on click count |
doc['last_modified'].value > now - 7d ? 3.0 : 1.0 | 3x boost if updated within the last week |
Usage Examples
Boost Documentation Site
Boost New Content
Reference
Admin API Overview - Admin API Overview
ElevateWord API - Elevate Word API
Document Boost - Document Boost Management Guide