Name | Type | Description |
---|---|---|
request | Request | The Solr query information. |
response | Response | The Solr response information. |
ctx | Context | A reference to the container which holds a map over the pipeline properties. Used to update or modify this information for downstream pipeline stages. |
collection | String | The name of the Fusion collection being indexed or queried. |
solrServer | BufferingSolrServer | The Solr server instance that manages the pipeline’s default Fusion collection. All indexing and query requests are done by calls to methods on this object. See SolrClient for details. |
solrServerFactory | SolrClientFactory | The SolrCluster server used for lookups by collection name which returns a Solr server instance for a that collection. For example: var productsSolr = solrServerFactory.getSolrServer("products"); . |
QueryRequestAndResponse | QueryRequestAndResponse | Returns list of info as a string. |
logger
logger
writes messages to the log file of the server running the pipeline.
This variable is truly global and does not need to be declared as part of the function parameter list.
There are 5 methods available, which each take either a single argument (the string message to log) or two arguments (the string message and an exception to log).
The five methods are, “debug”, “info”, “warn”, and “error”.
\t
for the tab character. When entering configuration values in the API, use escaped characters, such as \\t
for the tab character.