Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev
[jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory
 

Index | Next | Previous | View Flat


jira at apache

Jun 15, 2012, 12:54 AM


Views: 389
Permalink
[jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory

[ https://issues.apache.org/jira/browse/SOLR-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295512#comment-13295512 ]

Lance Norskog commented on SOLR-1725:
-------------------------------------

bq.I simply added jruby.jar and jython.jar to my local lucene/solr/lib directory and rebuilt the example.
Next post, 3 minutes later:
bq. Another TODO is to get this to work with a scripting language implementation JAR file being added as a "plugin" somehow. I'm not yet sure what it'd take to be able to keep solr.war as-is, and have an external jruby.jar picked up.

Doesn't the first comment answer the second? What other deployment are you describing?


> Script based UpdateRequestProcessorFactory
> ------------------------------------------
>
> Key: SOLR-1725
> URL: https://issues.apache.org/jira/browse/SOLR-1725
> Project: Solr
> Issue Type: New Feature
> Components: update
> Affects Versions: 1.4
> Reporter: Uri Boness
> Assignee: Erik Hatcher
> Labels: UpdateProcessor
> Fix For: 4.1
>
> Attachments: SOLR-1725-rev1.patch, SOLR-1725.patch, SOLR-1725.patch, SOLR-1725.patch, SOLR-1725.patch, SOLR-1725.patch, SOLR-1725.patch, SOLR-1725.patch, SOLR-1725.patch, SOLR-1725.patch
>
>
> A script based UpdateRequestProcessorFactory (Uses JDK6 script engine support). The main goal of this plugin is to be able to configure/write update processors without the need to write and package Java code.
> The update request processor factory enables writing update processors in scripts located in {{solr.solr.home}} directory. The functory accepts one (mandatory) configuration parameter named {{scripts}} which accepts a comma-separated list of file names. It will look for these files under the {{conf}} directory in solr home. When multiple scripts are defined, their execution order is defined by the lexicographical order of the script file name (so {{scriptA.js}} will be executed before {{scriptB.js}}).
> The script language is resolved based on the script file extension (that is, a *.js files will be treated as a JavaScript script), therefore an extension is mandatory.
> Each script file is expected to have one or more methods with the same signature as the methods in the {{UpdateRequestProcessor}} interface. It is *not* required to define all methods, only those hat are required by the processing logic.
> The following variables are define as global variables for each script:
> * {{req}} - The SolrQueryRequest
> * {{rsp}}- The SolrQueryResponse
> * {{logger}} - A logger that can be used for logging purposes in the script

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] lucene
For additional commands, e-mail: dev-help [at] lucene

Subject User Time
[jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jun 15, 2012, 12:54 AM
    [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jun 15, 2012, 12:41 PM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jun 29, 2012, 4:29 AM
            [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 12, 2012, 12:03 PM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jun 29, 2012, 4:35 AM
    [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jun 15, 2012, 2:06 PM
    [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jun 15, 2012, 3:43 PM
    [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jun 27, 2012, 6:06 PM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 2, 2012, 2:23 PM
            [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 13, 2012, 12:00 PM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 2, 2012, 2:37 PM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 2, 2012, 2:40 PM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 2, 2012, 4:00 PM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 3, 2012, 6:53 AM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 3, 2012, 6:55 AM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 3, 2012, 11:23 AM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 3, 2012, 11:33 AM
        [jira] [Commented] (SOLR-1725) Script based UpdateRequestProcessorFactory jira at apache Jul 3, 2012, 7:34 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.