|
SMILA (incubation) 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
SimplePipelet 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 Path |
QUERY
attribute to set in query to query string and attach terms to. |
static Path |
QUERY_ANNOTATION
path to set attribute annotations on query attribute. |
static java.lang.String |
SUFFIX_BLIND
blind text suffix. |
static java.lang.String |
SUFFIX_HIGHLIGHT
highlight suffix test. |
static Path |
TITLE
attribute to set in results to $PREFIX + index (0 <= index < resultSize). |
| Constructor Summary | |
|---|---|
MockSearchPipelet()
|
|
| Method Summary | |
|---|---|
void |
configure(PipeletConfiguration configuration)
set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow. |
SearchMessage |
process(Blackboard blackboard,
SearchMessage 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 Path QUERY
public static final Path QUERY_ANNOTATION
public static final Path 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(PipeletConfiguration configuration)
throws ProcessingException
configure in interface IPipeletconfiguration - configuration of pipelet.
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)#configure(org.eclipse.smila.processing.configuration.PipeletConfiguration)
public SearchMessage process(Blackboard blackboard,
SearchMessage message)
throws ProcessingException
process in interface SearchPipeletblackboard - Blackboard service managing the records.message - Ids of query record and records to process.
ProcessingException - error during processing.SimplePipelet.process(org.eclipse.smila.blackboard.Blackboard,
org.eclipse.smila.datamodel.id.Id[])
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||