lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "ScriptUpdateProcessor" by ErikHatcher
Date Wed, 09 Jan 2013 10:53:22 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "ScriptUpdateProcessor" page has been changed by ErikHatcher:
http://wiki.apache.org/solr/ScriptUpdateProcessor?action=diff&rev1=9&rev2=10

  = 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.
+ 
+ Here's a URL that works with the collection1 example demonstrating specifying the "script"
update chain: http://localhost:8983/solr/collection1/update?commit=true&stream.contentType=text/csv&fieldnames=id,description&stream.body=1,foo&update.chain=script
which logs the following:
+ 
+ {{{
+ INFO: update-script#processAdd: id=1
+ }}}
  
  == JavaScript ==
  

Mime
View raw message