Overview
DataConfig API is an API for managing Fess data store configurations. You can configure crawl settings for data sources such as databases, CSV, and JSON.
Base URL
Endpoint List
| Method | Path | Description |
|---|---|---|
| GET | /settings | List data store configurations |
| GET | /setting/{id} | Get data store configuration |
| POST | /setting | Create data store configuration |
| PUT | /setting | Update data store configuration |
| DELETE | /setting/{id} | Delete data store configuration |
List Data Store Configurations
Request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
size | Integer | No | Number of items per page (default: 25) |
page | Integer | No | Page number (starts from 1, default: 1) |
name | String | No | Filter by configuration name |
handlerName | String | No | Filter by handler name |
description | String | No | Filter by description |
Response
Get Data Store Configuration
Request
Response
Create Data Store Configuration
Request
Request Body
Field Description
| Field | Required | Description |
|---|---|---|
name | Yes | Configuration name |
description | No | Configuration description |
handlerName | Yes | Data store handler name |
handlerParameter | No | Handler parameters (connection information, etc.) |
handlerScript | No | Data transformation script |
boost | Yes | Search result boost value |
available | Yes | Enable/disable (string "true" / "false") |
sortOrder | Yes | Display order |
permissions | No | Access permission roles (newline-separated for multiple values) |
virtualHosts | No | Virtual hosts (newline-separated for multiple values) |
Response
Update Data Store Configuration
Request
Request Body
Update requests require the same required fields as creation (name, handlerName, boost, available, sortOrder), plus the following fields:
| Field | Required | Description |
|---|---|---|
id | Yes | ID of the configuration to update |
versionNo | Yes | Version number for optimistic locking (specify the value returned when the setting was retrieved) |
Response
Delete Data Store Configuration
Request
Response
Handler Types
| Handler Name | Description |
|---|---|
DatabaseDataStore | Connect to databases via JDBC |
CsvDataStore | Reads data from a CSV file (processes each row as one document) |
CsvListDataStore | Reads CSV files and automatically deletes processed files (an extension of CsvDataStore with timestamp-based filtering) |
JsonDataStore | Read data from JSON files or JSON APIs |
Note
The available handler types depend on the installed data store plugins. The handlers above are included by default. Installing data store plugins such as SharePoint, Slack, or Salesforce makes their corresponding handler names available.
Usage Examples
Database Crawl Configuration
Reference
Admin API Overview - Admin API Overview
WebConfig API - Web Crawl Configuration API
FileConfig API - File Crawl Configuration API
Data Store Crawling - Data Store Configuration Guide