ctx
(Context) object into the query response. Requirements:
response
parameter cannot be used in query pipeline stages prior to the Solr query stage. This example assumes use in a later stage.response.initialEntity.appendStringList()
function only works if the query’s wt
(writer type) parameter is set to json or xml, for example: wt=json
.typeof(object)
will not give meaningful results. Instead, you can use JavaScript to discover the Java type of an object. Once you know the Java type of an object, you can refer to the Fusion Pipeline Javadocs to learn more about the Java type and how to use Java Objects.
./apps/libs
folder. The jar file path must be included in .apps/jetty/api/webapps/api-extra-classpath.txt
and apps/jetty/connectors-classic/webapps/connectors-extra-classpath.txt
.
For example, to create script objects that access and reference Java types from Javascript use the Java.type()
function: