Modifier and Type | Field and Description |
---|---|
static int |
MAX_INDEX_SIZE
maximal number of hits.
|
static int |
MAX_TOTAL_HITS
maximal number of hits.
|
static java.lang.String |
PREFIX
prefix for fragment name and attribute value.
|
static java.lang.String |
PREFIX_BLIND
blind text prefix.
|
static java.lang.String |
PREFIX_HIGHLIGHT
highlight prefix test.
|
static java.lang.String |
SUFFIX_BLIND
blind text suffix.
|
static java.lang.String |
SUFFIX_HIGHLIGHT
highlight suffix test.
|
static java.lang.String |
TITLE
attribute to set in results to $PREFIX + index (0 <= index < resultSize).
|
Constructor and Description |
---|
MockSearchPipelet() |
Modifier and Type | Method and Description |
---|---|
void |
configure(AnyMap configuration)
set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow.
|
java.lang.String[] |
process(Blackboard blackboard,
java.lang.String[] message)
simulate an index retrieval.
|
public static final int MAX_TOTAL_HITS
public static final int MAX_INDEX_SIZE
public static final java.lang.String TITLE
public static final java.lang.String PREFIX
public static final java.lang.String PREFIX_BLIND
public static final java.lang.String SUFFIX_BLIND
public static final java.lang.String PREFIX_HIGHLIGHT
public static final java.lang.String SUFFIX_HIGHLIGHT
public void configure(AnyMap configuration) throws ProcessingException
configure
in interface Pipelet
configuration
- configuration of pipelet.ProcessingException
- configuration is not applicable for pipelet (missing properties, wrong datatypes)public java.lang.String[] process(Blackboard blackboard, java.lang.String[] message) throws ProcessingException
process
in interface Pipelet
blackboard
- Blackboard holding and managing the records.message
- Ids of records to process.ProcessingException
- error during processing.