lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (JIRA)" <>
Subject [jira] Commented: (SOLR-104) Update Plugins
Date Sun, 14 Jan 2007 23:27:27 GMT


Ryan McKinley commented on SOLR-104:

I just upload a new version of

In addition to the 8 files above, also delete:

There is also a clean copy on:
This should be easier to install - or look at (without having to install)

This version converts everything to use the new framework rather then keeping /select and
/update on the old one.  It also includes a draft proposal on how to deal with deal with GET
vs POST body vs multipart content.

It passes all the tests and seems to work exactly as before (with a few exceptions)
* /update content is returned with a ResponseWriter
* [my-BUG] I am unable to get some posted content to read its stream properly.  I had to modify:

to call:
 curl $URL --data-binary '<commit/>' -H 'Content-type:text/xml;' 
rather then just:
 curl $URL --data-binary '<commit/>'

(any ideas?)

- - - - - - - -

I define three basic types of request handlers in:
1) standard.  This gets everything from parameters (get or post) 
2) posted.  This gets a reader from the posted body:
3) multipart.  This gets an iterator over each file item using commons-upload streaming API

I *think* this takes care of every case...  is anything missing?

The [
RequestFilter] manages setting the reader or iterator for the proper handlers.

When you run the example, i added the page http://localhost:8983/solr/up.html that should
help you see a little of it in action.  

I added an example for each type:

- - - 

This added:

to the library.  If we want to get rid of commons-io, I am only using

> Update Plugins
> --------------
>                 Key: SOLR-104
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 1.2
>            Reporter: Ryan McKinley
>             Fix For: 1.2
>         Attachments:,,
HandlerRefactoring.DRAFT.patch, HandlerRefactoring.DRAFT.patch,
> The plugin framework should work for 'update' actions in addition to 'search' actions.
> For more discussion on this, see:

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message