I cannot believe I've looked over this :}
Thanks for helping me out. It works fine now.

I'd like to contribute to the wiki
page<http://wiki.apache.org/solr/ScriptUpdateProcessor>and add a
python example. So, if anyone could allow me write access or tell
me how to do this without, I'd be happy to contribute.

On Wed, Mar 27, 2013 at 12:38 AM, Chris Hostetter
<hossman_luc...@fucit.org>wrote:

>
> : none of the params I specify in solrconfig.xml are being picked up. The
> : error I'm getting is: "NameError: global name 'params' is not defined".
>
>         ...
>
> :   <updateRequestProcessorChain name="script">
> :     <processor class="solr.StatelessScriptUpdateProcessorFactory">
> :       <str name="script">summarize.py</str>
> :     </processor>
> :     <!--  optional parameters passed to script -->
> :       <lst name="params">
> :         <str name="from_field">abstract</str>
> :         <str name="to_field">summary</str>
> :       </lst>
>
> ...that list of "params" isn't inside the <processor> tag, so
> StatelessScriptUpdateProcessorFactory doesn't know anything about it, so
> it's not passing it to the ScriptEngineManager
>
>
> -Hoss
>

Reply via email to