You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2022/04/01 22:54:17 UTC

[solr] branch branch_9x updated: slight reorg of the example

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

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


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

commit f969ee23c8ae67813dc555d74c5f4f6e5e15bcb9
Author: epugh@opensourceconnections.com <>
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]