Overview
Dict API is an API for managing Fess dictionary files. You can manage synonym dictionaries, mapping dictionaries, protected word dictionaries, and more.
Base URL
Endpoint List
| Method | Path | Description |
|---|---|---|
| GET | / | List dictionaries |
| GET | /{id} | Get dictionary content |
| PUT | /{id} | Update dictionary content |
| POST | /upload | Upload dictionary file |
List Dictionaries
Request
Response
Get Dictionary Content
Request
Response
Update Dictionary Content
Request
Request Body
Field Description
| Field | Required | Description |
|---|---|---|
content | Yes | Dictionary content (newline separated) |
Response
Upload Dictionary File
Request
Request Body
Field Description
| Field | Required | Description |
|---|---|---|
type | Yes | Dictionary type (synonym/mapping/protwords/stopwords) |
file | Yes | Dictionary file |
Response
Dictionary Types
| Type | Description |
|---|---|
synonym | Synonym dictionary (expands synonyms during search) |
mapping | Mapping dictionary (character normalization) |
protwords | Protected words dictionary (words excluded from stemming) |
stopwords | Stopwords dictionary (words excluded from indexing) |
kuromoji | Kuromoji dictionary (Japanese morphological analysis) |
Dictionary Format Examples
Synonym Dictionary
Mapping Dictionary
Protected Words Dictionary
Usage Examples
List Dictionaries
Get Synonym Dictionary Content
Update Synonym Dictionary
Upload Dictionary File
Important Notes
Index rebuilding may be required after updating dictionaries
Large dictionary files may affect search performance
Use UTF-8 encoding for dictionary files
Reference
Admin API Overview - Admin API Overview
Dictionary - Dictionary Management Guide