This is an automated email from the ASF dual-hosted git repository.

epugh pushed a commit to branch branch_9_0
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9_0 by this push:
     new f710bd4  slight reorg of the example
f710bd4 is described below

commit f710bd409dab512724217700a7287af37138ec76
Author: [email protected] <>
AuthorDate: Fri Apr 1 18:50:38 2022 -0400

    slight reorg of the example
---
 .../configuration-guide/pages/script-update-processor.adoc | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git 
a/solr/solr-ref-guide/modules/configuration-guide/pages/script-update-processor.adoc
 
b/solr/solr-ref-guide/modules/configuration-guide/pages/script-update-processor.adoc
index c38e364..ea17b04 100644
--- 
a/solr/solr-ref-guide/modules/configuration-guide/pages/script-update-processor.adoc
+++ 
b/solr/solr-ref-guide/modules/configuration-guide/pages/script-update-processor.adoc
@@ -113,17 +113,14 @@ The "params" object, if any specified, from the 
configuration.
 
 == Try it Out
 
+There is a JavaScript example `update-script.js` as part of the "techproducts" 
configset.
+
 To try out scripting, enable the `<updateRequestProcessorChain name="script">` 
configuration in the
 file 
`./server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml`. 
Then start Solr via
 `bin/solr start -e techproducts -Dsolr.modules=scripting`.
 
 This URL demonstrates specifying the "script" update chain: 
`http://localhost:8983/solr/techproducts/update?commit=true&stream.contentType=text/csv&fieldnames=id,description&stream.body=1,foo&update.chain=script`
 which logs the following:
 
-== Examples
-
-The `processAdd()` and the other script methods can return false to skip 
further processing of the document.
-All methods must be defined, though generally the `processAdd()` method is 
where the action is.
-
 [source,text]
 ----
 INFO: update-script#processAdd: id=1
@@ -131,9 +128,14 @@ INFO: update-script#processAdd: id=1
 
 You can see the message recorded in the Solr logging UI.
 
+== Examples
+
+The `processAdd()` and the other script methods can return false to skip 
further processing of the document.
+All methods must be defined, though generally the `processAdd()` method is 
where the action is.
+
 === Javascript
 
-Note: There is a JavaScript example `update-script.js` as part of the 
"techproducts" configset.
+Note:
 Check `solrconfig.xml` and uncomment the update request processor definition 
to enable this feature.
 
 [source,javascript]

Reply via email to