You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50-28Lines changed: 50 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,30 +5,41 @@
5
5
6
6
A simple example plugin demonstrating how to create custom script engines for [Fess](https://fess.codelibs.org/), the open-source enterprise search server.
7
7
8
+
## What Is a Script Engine?
9
+
10
+
A Fess script engine turns a **template** plus a **parameter map** into a value. Fess uses script
11
+
engines wherever an administrator can enter a small script or expression — for example to compute a
12
+
document boost, derive a field value during crawling, or run logic in a scheduled job. The built-in
13
+
`groovy` engine evaluates full Groovy scripts; this example shows the minimal shape of a custom one.
14
+
8
15
## Overview
9
16
10
-
This plugin provides a minimal implementation of a custom script engine for Fess. The `ExampleEngine` serves as a template and starting point for developers who want to create their own script engines with custom template processing logic.
17
+
This plugin provides a minimal implementation of a custom script engine for Fess. The `ExampleEngine`
18
+
serves as a template and starting point for developers who want to create their own script engines
19
+
with custom template processing logic.
11
20
12
21
### Key Features
13
22
14
-
-**Simple Implementation**: Demonstrates the basic structure of a Fess script engine
15
-
-**Template Pass-through**: Returns template strings unchanged (useful for testing and learning)
16
-
-**Full Integration**: Properly integrated with Fess's dependency injection container
17
-
-**Comprehensive Tests**: Includes extensive test cases covering edge cases and various scenarios
23
+
-**Real, Minimal Evaluation**: Performs simple `${key}` placeholder substitution from the parameter map
24
+
-**Idiomatic Structure**: Demonstrates the standard structure of a Fess script engine
25
+
-**Self-Registration**: Registers itself with the script engine factory via the DI container
0 commit comments