[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2007-02-20 Thread Ryan McKinley (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan McKinley updated SOLR-85:
--

Attachment: SOLR-85-UpdatForms-RequestHandlers.patch

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: https://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.png, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> SOLR-85-UpdatForms-RequestHandlers.patch, 
> SOLR-85-UpdatForms-RequestHandlers.patch, solr-85-with-104.patch, 
> solr-85-with-104.patch, solr-85-with-104.patch, solr-85.diff, solr-85.diff, 
> solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2007-02-20 Thread Ryan McKinley (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan McKinley updated SOLR-85:
--

Attachment: SOLR-85-UpdatForms-RequestHandlers.patch

> 
> 1) duplicate code cut/paste from CommitRequestHandler in 
> XmlUpdateRequestHandler 

I moved the common code to a new file RequestHandlerUtils.java


> 2) the upload form assumes /update/xml is a registered requestHandler name 
> which...

I may have gone completely mad with this one, so a sanity check would be  good! 
 

I made a "FormRequestHandler" that returns an HTML form for a given path if it 
has been registered.  For example, if you had:

 
   
raw 
   
   
forms/update/xml.html 
forms/update/csv.html 
   
 

hitting:
 http://localhost:8983/solr/admin/form?path=/update/xml

returns the html sitting in ${solr.home}/conf/forms/update/xml.html

It replaces ${path} with the registered path.

- - - - - - -

Since the admin RequestHandler config scheme gets pretty unruly if you have to 
configure it is solrconfig.xml, I added a flag to the  section to set 
where you want all the standard ones


  /admin
  ...


If you put "false" it will not register the default paths.  It will not 
overwrite any existing paths either.  that is, if you manually register,  
"/admin/file" it will not put in the default one


- - - - - 

The AdminHandlersSetupHelper automatically finds forms in the conf/forms/ 
directory that match registered handlers and registers them with the 
FormRequestHandler.  

- - - - - -

I'm putting this up mostly for a sanity check.  If you like the direction, i'll 
add more comments, documentation and clean things up.

thanks

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: https://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.png, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> SOLR-85-UpdatForms-RequestHandlers.patch, solr-85-with-104.patch, 
> solr-85-with-104.patch, solr-85-with-104.patch, solr-85.diff, solr-85.diff, 
> solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2007-02-15 Thread Ryan McKinley (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan McKinley updated SOLR-85:
--

Attachment: solr-85-with-104.patch

slight change so it applies cleanly after SOLR-145

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: https://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.png, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solr-85-with-104.patch, solr-85-with-104.patch, solr-85-with-104.patch, 
> solr-85.diff, solr-85.diff, solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2007-01-31 Thread Ryan McKinley (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan McKinley updated SOLR-85:
--

Attachment: solr-85-with-104.patch

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: https://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.png, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solr-85-with-104.patch, solr-85-with-104.patch, solr-85.diff, solr-85.diff, 
> solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2007-01-30 Thread Ryan McKinley (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan McKinley updated SOLR-85:
--

Attachment: solr-85-with-104.patch

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: https://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.png, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solr-85-with-104.patch, solr-85.diff, solr-85.diff, solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2006-12-18 Thread Thorsten Scherler (JIRA)
 [ http://issues.apache.org/jira/browse/SOLR-85?page=all ]

Thorsten Scherler updated SOLR-85:
--

Attachment: solar-85.with.file.upload.diff

Always using  as surrounding tag.
When in multiPart mode the commit field needs to be read within the multiPart 
processing.

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: http://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.png, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, solr-85.diff, 
> solr-85.diff, solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2006-12-18 Thread Thorsten Scherler (JIRA)
 [ http://issues.apache.org/jira/browse/SOLR-85?page=all ]

Thorsten Scherler updated SOLR-85:
--

Attachment: solar-85.with.file.upload.diff

Changing sysout to log. 
Removing obsolete variables.

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: http://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.png, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, 
> solar-85.with.file.upload.diff, solr-85.diff, solr-85.diff, solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2006-12-18 Thread Thorsten Scherler (JIRA)
 [ http://issues.apache.org/jira/browse/SOLR-85?page=all ]

Thorsten Scherler updated SOLR-85:
--

Attachment: solar-85.with.file.upload.diff

On Fri, 2006-12-15 at 09:08 -0800, Yonik Seeley (JIRA) wrote:
Yonik Seeley commented on SOLR-85:
> --
> 
> Cool stuff Thorsten! 

Cheers. :)

> Things like this can increase the user-friendliness of Solr and make it 
> easier to learn.

Yeah, and play around platform independent.

> To be safe though, perhaps there should be an "update" page so someone 
> doesn't change an index with a single errant click?

Done this, updated patch attached.

> And make it easy to disable the update page from solrconfig.xml, 

Done this:
...
   
  
...

true
  

> and put a comment telling people how it can be disabled.

I added further comments on the pages (index + update) how to change the 
behavior.

> "commit" and "optimize" buttons would be nice!

There is a commit checkbox, if you check it, after your update statements it 
will do as well a commit.

Not sure about the optimize button, what will it do?

> 
> Some ideas for a "future" update page (doesn't need to be in this patch)
>  - something that helps you build the XML... select a field, input value(s), 
> and have a "generate request" button so you can see what is about to be sent.

yeah that would be nice

>  - show some update statistics... number of pending documents, etc

yeah

>  - support for future update syntaxes (CSV?)

see my comment before, I reckon the best way would be that the cvs becomes an 
input plugin and returns xml instead actually handle the request. Then the 
default input plugin (if no other input plugin is selected) would be a xml 
plugin, treating the Stream as is.

>  - ability to select files to upload 

you mean, more then one file? Yeah,  should not be too hard.

Anyway like you stated "future update page", maybe best to apply this patch and 
we open a new one for the mentioned enhancements.

WDYT?



> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: http://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.png, 
> solar-85.with.file.upload.diff, solar-85.with.file.upload.diff, solr-85.diff, 
> solr-85.diff, solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2006-12-15 Thread Thorsten Scherler (JIRA)
 [ http://issues.apache.org/jira/browse/SOLR-85?page=all ]

Thorsten Scherler updated SOLR-85:
--

Attachment: solar-85.png

New screenshot including the new features.

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: http://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.png, 
> solar-85.with.file.upload.diff, solr-85.diff, solr-85.diff, solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2006-12-15 Thread Thorsten Scherler (JIRA)
 [ http://issues.apache.org/jira/browse/SOLR-85?page=all ]

Thorsten Scherler updated SOLR-85:
--

Attachment: solar-85.with.file.upload.diff

The solar-85.with.file.upload.diff is further extending the current patch and 
makes the old diffs obsolete. I sadly have no power to remove the obsolete 
attachments. Sorry.

This patch is providing a way to upload a update document.

On Fri, 2006-12-15 at 04:57 +0100, Zaheed Haque wrote:
...
> Maybe you can add a "file upload" button.  what I mean is
> that lets say
> you have a file data.xml or data.txt or data.tar.gzip (maybe gzip or
> tar format can be done later)
> with many solr records..like ..
> 
> 
> 
> etc.. more..
> 
> 
> 
> Then you could uplaod that file and "presto" you updated the index..
> that would be cool. I still would like to have the current textarea
> box its cool to be able to delete a  directly ot update a
>  directly..
>

The current implementation  is assuming the uploaded file is an xml document.


> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: http://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solar-85.with.file.upload.diff, 
> solr-85.diff, solr-85.diff, solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




Re: Update via web (was Re: [jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen)

2006-12-15 Thread Chris Hostetter

: can somebody remove the former attachments from 14/Dec/06 04:34 AM and
: 14/Dec/06 04:36 AM from http://issues.apache.org/jira/browse/SOLR-85.
: The only valid patch is solr-85.FINAL.diff

it's relaly not that big of a deal .. if you reuse the same name for
newer versions of a patch, the older versions get greyed out ... and even
if you use a new name, clicking "All" above the list of Comments let's you
see the "All" detials about hte history of the issue -- including which
attachments were made when.




-Hoss



Update via web (was Re: [jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen)

2006-12-14 Thread Thorsten Scherler
Hi all,

can somebody remove the former attachments from 14/Dec/06 04:34 AM and
14/Dec/06 04:36 AM from http://issues.apache.org/jira/browse/SOLR-85.
The only valid patch is solr-85.FINAL.diff 

TIA

This new feature allows you to update your solr instance via web. For
your convenience I add the a commit button to commit directly
afterwards.


Just add your update statement into the form and submit.
Try with 


 
  SP2514N
  Samsung SpinPoint P120 SP2514N - hard drive - 250
GB - ATA-133
  Samsung Electronics Co. Ltd.
  electronics
  hard drive
  7200RPM, 8MB cache, IDE Ultra ATA-133
  NoiseGuard, SilentSeek technology, Fluid
Dynamic Bearing (FDB) motor
  92
  6
  true



Hope this might be useful.

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)



[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2006-12-14 Thread Thorsten Scherler (JIRA)
 [ http://issues.apache.org/jira/browse/SOLR-85?page=all ]

Thorsten Scherler updated SOLR-85:
--

Attachment: solr-85.FINAL.diff

Final version of patch.

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: http://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solr-85.diff, solr-85.diff, 
> solr-85.FINAL.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2006-12-14 Thread Thorsten Scherler (JIRA)
 [ http://issues.apache.org/jira/browse/SOLR-85?page=all ]

Thorsten Scherler updated SOLR-85:
--

Attachment: solr-85.diff

The former version did not contain the new servlet, this one does.

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: http://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solr-85.diff, solr-85.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2006-12-14 Thread Thorsten Scherler (JIRA)
 [ http://issues.apache.org/jira/browse/SOLR-85?page=all ]

Thorsten Scherler updated SOLR-85:
--

Attachment: solr-85.diff

Patch for the update form

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: http://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png, solr-85.diff
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SOLR-85) [PATCH] Add update form to the admin screen

2006-12-14 Thread Thorsten Scherler (JIRA)
 [ http://issues.apache.org/jira/browse/SOLR-85?page=all ]

Thorsten Scherler updated SOLR-85:
--

Attachment: solar-85.png

Screenshot of the extended admin screen

> [PATCH] Add update form to the admin screen
> ---
>
> Key: SOLR-85
> URL: http://issues.apache.org/jira/browse/SOLR-85
> Project: Solr
>  Issue Type: New Feature
>  Components: update
>Reporter: Thorsten Scherler
> Attachments: solar-85.png
>
>
> It would be nice to have a webform to update solr via a http interface 
> instead of using the post.sh.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira