let
, const
, or template strings, Fusion does not enable ES6 by default, so ES6 support is not guaranteed.
What a JavaScript program can do depends on the container in which it runs.
For a JavaScript Query stage, the container is a Fusion query pipeline.
Global pipeline variables
request
variable contains Solr query information and is referred to as a regular request. A regular query request does not include Search DSL (domain specific language) parameters.request
variable is also used when the query contains parameters for a Search DSL (domain specific language) request. response
variable contains Solr response information, and is used to return information from a regular request. Because a regular request does not include Search DSL (domain specific language) parameters, the response will not return Search DSL results.response
variable is also used to return information from a Search DSL (domain specific language) request. A map that stores miscellaneous data created by each stage of the pipeline.
ctx
variable instead of the deprecated _context
global variable. ctx
variable is used to: The SolrCluster server used for lookups by collection name which returns a Solr server instance for that collection, e.g.
var productsSolr = solrServerFactory.getSolrServer(“products”);
.
logger