|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.search.servlet.MockSearchPipelet
public class MockSearchPipelet
Pipelet implementation for test. Just logs the given configuration and record IDs.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
MockSearchPipelet()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public MockSearchPipelet()
| Method Detail |
|---|
public void configure(AnyMap configuration)
throws ProcessingException
configure in interface Pipeletconfiguration - 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 Pipeletblackboard - Blackboard holding and managing the records.message - Ids of records to process.
ProcessingException - error during processing.
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||