lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-5103) Plugin Improvements
Date Wed, 19 Aug 2015 12:45:46 GMT

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

Jan Høydahl commented on SOLR-5103:
-----------------------------------

bq. So you are trying to eliminate step #3 here. Is that right ?
Not primarily. Your list is over simplified. Today:
# Realize that there is a plugin for what you want to do
# Locate and download that plugin
# Read the docs and find and download any dependencies of the plugin
#* Example: dist/solr-cell-5.0.0.jar is the plugin, and you also have 34 dependency jars from
contrib/lib/
# For each jar required (35 in total):
#* {{curl -X POST -H 'Content-Type: application/octet-stream' --data-binary @filename.jar
http://localhost:8983/solr/.system/blob/name }}
# For each collection in the system (that needs the plugin):
#* For each jar that belongs to the "plugin":
#** Put each jar on the "classpath" for the collection
#** {code}
curl http://localhost:8983/solr/collection1/config -H 'Content-type:application/json'  -d
'{
"add-runtimelib" : {"name": "jarname" , "version":2 },
"update-runtimelib" :{"name": "jarname" ,"version":3},
"delete-runtimelib" :"jarname" 
}' 
{code}
#** Register the plugin into config or schema or zookeeper or solr.xml depending on the type,
e.g.
#** {code}
{"add-searchcomponent":
   "name":"elevator",
   "class":"QueryElevationComponent",
   "queryFieldType":"string",
   "config-file":"elevate.xml"
}
{code}

Not to mention when you want to upgrade the plugin to a newer version, or uninstall it..

Now compare this to a click in the Admin UI or:

{noformat}
bin/solr installplugin solrcell 5.2.1
bin/solr removeplugin solrcell
bin/solr installplugin solrcell 5.3.0
{noformat}

> Plugin Improvements
> -------------------
>
>                 Key: SOLR-5103
>                 URL: https://issues.apache.org/jira/browse/SOLR-5103
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>             Fix For: Trunk
>
>
> I think for 5.0, we should make it easier to add plugins by defining a plugin package,
ala a Hadoop Job jar, which is a self--contained archive of a plugin that can be easily installed
(even from the UI!) and configured programmatically.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message