[jira] Resolved: (SOLR-230) make post.jar support better args for using tutorial
[ https://issues.apache.org/jira/browse/SOLR-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man resolved SOLR-230. --- Resolution: Fixed Fix Version/s: 1.2 Committed revision 541046. > make post.jar support better args for using tutorial > > > Key: SOLR-230 > URL: https://issues.apache.org/jira/browse/SOLR-230 > Project: Solr > Issue Type: New Feature > Components: update >Reporter: Hoss Man > Assigned To: Hoss Man > Fix For: 1.2 > > Attachments: SOLR-230.patch > > > SOLR-86 create post.jar which eliminated the need for post.sh ... but as > noticed in > SOLR-164 there are still some cases in the tutorial that require direct use > of curl (deleting) and there are some nice things about post.sh that post.jar > doesn't support (defaulting the URL) > this issue is to tackle some of the ideas Bertrand and I posted as a comment > in SOLR-86 after it was resolved > Bertrand Delacretaz [19/Feb/07 12:35 AM] ... > Considering the tutorial examples > (http://lucene.apache.org/solr/tutorial.html), it'd be useful to allow this > to POST its standard input, or the contents of a command-line parameter: ... > Hoss Man [19/Feb/07 11:50 AM] > yeah ... i think we should hardcode http://localhost:8983/solr/update with a > possible override by system prop, then add either a command line switch other > another system prop indicating to use the command line as filenames or as raw > data, and another op for stdin. > java -jar -Ddata=files post.jar *.xml > java -jar post.jar *.xml ... data=files being the default > echo "name:DDR" | java -jar -Ddata=stdin > post.jar > cat *.xml | java -jar -Ddata=stdin post.jar > java -jar -Ddata=args post.jar "name:DDR" > java -jar -Durl=http://localhost:8983/solr/update post.jar *.xml -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-230) make post.jar support better args for using tutorial
[ https://issues.apache.org/jira/browse/SOLR-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496674 ] Hoss Man commented on SOLR-230: --- To answer both questions: i did it that way just to try and keep the code simple and explicit. i figured using system props would help make the execution examples in the tutorial self documenting, while keeping the simple uses cases very simple, and eliminating the need for any complex getopt style argv parsing. > make post.jar support better args for using tutorial > > > Key: SOLR-230 > URL: https://issues.apache.org/jira/browse/SOLR-230 > Project: Solr > Issue Type: New Feature > Components: update >Reporter: Hoss Man > Assigned To: Hoss Man > Attachments: SOLR-230.patch > > > SOLR-86 create post.jar which eliminated the need for post.sh ... but as > noticed in > SOLR-164 there are still some cases in the tutorial that require direct use > of curl (deleting) and there are some nice things about post.sh that post.jar > doesn't support (defaulting the URL) > this issue is to tackle some of the ideas Bertrand and I posted as a comment > in SOLR-86 after it was resolved > Bertrand Delacretaz [19/Feb/07 12:35 AM] ... > Considering the tutorial examples > (http://lucene.apache.org/solr/tutorial.html), it'd be useful to allow this > to POST its standard input, or the contents of a command-line parameter: ... > Hoss Man [19/Feb/07 11:50 AM] > yeah ... i think we should hardcode http://localhost:8983/solr/update with a > possible override by system prop, then add either a command line switch other > another system prop indicating to use the command line as filenames or as raw > data, and another op for stdin. > java -jar -Ddata=files post.jar *.xml > java -jar post.jar *.xml ... data=files being the default > echo "name:DDR" | java -jar -Ddata=stdin > post.jar > cat *.xml | java -jar -Ddata=stdin post.jar > java -jar -Ddata=args post.jar "name:DDR" > java -jar -Durl=http://localhost:8983/solr/update post.jar *.xml -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-230) make post.jar support better args for using tutorial
[ https://issues.apache.org/jira/browse/SOLR-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496669 ] Carsten commented on SOLR-230: -- Being from the unix fraction: Why is there a need for "-Ddata=stdin" ? Just make it read from stdin if no arguments are given. Good old unix tradition. And by the way: Why would you use system properties to pass parameters instead of simply using a parameter like java -jar post.jar -url http://localhost:8983/solr/update *.xml java -jar post.jar -data "name:DDR" Just my EUR 0.02. > make post.jar support better args for using tutorial > > > Key: SOLR-230 > URL: https://issues.apache.org/jira/browse/SOLR-230 > Project: Solr > Issue Type: New Feature > Components: update >Reporter: Hoss Man > Assigned To: Hoss Man > Attachments: SOLR-230.patch > > > SOLR-86 create post.jar which eliminated the need for post.sh ... but as > noticed in > SOLR-164 there are still some cases in the tutorial that require direct use > of curl (deleting) and there are some nice things about post.sh that post.jar > doesn't support (defaulting the URL) > this issue is to tackle some of the ideas Bertrand and I posted as a comment > in SOLR-86 after it was resolved > Bertrand Delacretaz [19/Feb/07 12:35 AM] ... > Considering the tutorial examples > (http://lucene.apache.org/solr/tutorial.html), it'd be useful to allow this > to POST its standard input, or the contents of a command-line parameter: ... > Hoss Man [19/Feb/07 11:50 AM] > yeah ... i think we should hardcode http://localhost:8983/solr/update with a > possible override by system prop, then add either a command line switch other > another system prop indicating to use the command line as filenames or as raw > data, and another op for stdin. > java -jar -Ddata=files post.jar *.xml > java -jar post.jar *.xml ... data=files being the default > echo "name:DDR" | java -jar -Ddata=stdin > post.jar > cat *.xml | java -jar -Ddata=stdin post.jar > java -jar -Ddata=args post.jar "name:DDR" > java -jar -Durl=http://localhost:8983/solr/update post.jar *.xml -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Assigned: (SOLR-230) make post.jar support better args for using tutorial
[ https://issues.apache.org/jira/browse/SOLR-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man reassigned SOLR-230: - Assignee: Hoss Man baring objection, i'll plan on committing this later this week. > make post.jar support better args for using tutorial > > > Key: SOLR-230 > URL: https://issues.apache.org/jira/browse/SOLR-230 > Project: Solr > Issue Type: New Feature > Components: update >Reporter: Hoss Man > Assigned To: Hoss Man > Attachments: SOLR-230.patch > > > SOLR-86 create post.jar which eliminated the need for post.sh ... but as > noticed in > SOLR-164 there are still some cases in the tutorial that require direct use > of curl (deleting) and there are some nice things about post.sh that post.jar > doesn't support (defaulting the URL) > this issue is to tackle some of the ideas Bertrand and I posted as a comment > in SOLR-86 after it was resolved > Bertrand Delacretaz [19/Feb/07 12:35 AM] ... > Considering the tutorial examples > (http://lucene.apache.org/solr/tutorial.html), it'd be useful to allow this > to POST its standard input, or the contents of a command-line parameter: ... > Hoss Man [19/Feb/07 11:50 AM] > yeah ... i think we should hardcode http://localhost:8983/solr/update with a > possible override by system prop, then add either a command line switch other > another system prop indicating to use the command line as filenames or as raw > data, and another op for stdin. > java -jar -Ddata=files post.jar *.xml > java -jar post.jar *.xml ... data=files being the default > echo "name:DDR" | java -jar -Ddata=stdin > post.jar > cat *.xml | java -jar -Ddata=stdin post.jar > java -jar -Ddata=args post.jar "name:DDR" > java -jar -Durl=http://localhost:8983/solr/update post.jar *.xml -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-230) make post.jar support better args for using tutorial
[ https://issues.apache.org/jira/browse/SOLR-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man updated SOLR-230: -- Attachment: SOLR-230.patch patch that tackles all of these changes ... modifies SimplePostTool a well as the tutorial. note two small differences between what i proposed and what I implemented... 1) "cat *.xml | post -Ddata=stdin -jar post.jar" does not work because when reading from stdin we have 1 and only one stream to post, and the examples files themselves contain the blocks. "cat *.xml | post -Ddata=stdin -jar post.jar" does work however 2) i added a "commit" system prop and defaulted it to "yes" ... this is needed because when deleting in the tutorial it wants to show off the pending dleetes and the fact that the doc is still there until you commit. for what it's worth there is now also simple support for "-help" option, but i don't know if we should advertise it ... if anyone is using post.jar beyond what is described in theetutorial, they should relaly look at the code itself. > make post.jar support better args for using tutorial > > > Key: SOLR-230 > URL: https://issues.apache.org/jira/browse/SOLR-230 > Project: Solr > Issue Type: New Feature > Components: update > Reporter: Hoss Man > Attachments: SOLR-230.patch > > > SOLR-86 create post.jar which eliminated the need for post.sh ... but as > noticed in > SOLR-164 there are still some cases in the tutorial that require direct use > of curl (deleting) and there are some nice things about post.sh that post.jar > doesn't support (defaulting the URL) > this issue is to tackle some of the ideas Bertrand and I posted as a comment > in SOLR-86 after it was resolved > Bertrand Delacretaz [19/Feb/07 12:35 AM] ... > Considering the tutorial examples > (http://lucene.apache.org/solr/tutorial.html), it'd be useful to allow this > to POST its standard input, or the contents of a command-line parameter: ... > Hoss Man [19/Feb/07 11:50 AM] > yeah ... i think we should hardcode http://localhost:8983/solr/update with a > possible override by system prop, then add either a command line switch other > another system prop indicating to use the command line as filenames or as raw > data, and another op for stdin. > java -jar -Ddata=files post.jar *.xml > java -jar post.jar *.xml ... data=files being the default > echo "name:DDR" | java -jar -Ddata=stdin > post.jar > cat *.xml | java -jar -Ddata=stdin post.jar > java -jar -Ddata=args post.jar "name:DDR" > java -jar -Durl=http://localhost:8983/solr/update post.jar *.xml -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-230) make post.jar support better args for using tutorial
[ https://issues.apache.org/jira/browse/SOLR-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man updated SOLR-230: -- Assignee: (was: Erik Hatcher) Description: SOLR-86 create post.jar which eliminated the need for post.sh ... but as noticed in SOLR-164 there are still some cases in the tutorial that require direct use of curl (deleting) and there are some nice things about post.sh that post.jar doesn't support (defaulting the URL) this issue is to tackle some of the ideas Bertrand and I posted as a comment in SOLR-86 after it was resolved Bertrand Delacretaz [19/Feb/07 12:35 AM] ... Considering the tutorial examples (http://lucene.apache.org/solr/tutorial.html), it'd be useful to allow this to POST its standard input, or the contents of a command-line parameter: ... Hoss Man [19/Feb/07 11:50 AM] yeah ... i think we should hardcode http://localhost:8983/solr/update with a possible override by system prop, then add either a command line switch other another system prop indicating to use the command line as filenames or as raw data, and another op for stdin. java -jar -Ddata=files post.jar *.xml java -jar post.jar *.xml ... data=files being the default echo "name:DDR" | java -jar -Ddata=stdin post.jar cat *.xml | java -jar -Ddata=stdin post.jar java -jar -Ddata=args post.jar "name:DDR" java -jar -Durl=http://localhost:8983/solr/update post.jar *.xml was: We need a cross platform replacement for the post.sh. The attached code is a direct replacement of the post.sh since it is actually doing the same exact thing. In the future one can extend the CLI with other feature like auto commit, etc.. Right now the code assumes that SOLR-85 is applied since we using the servlet of this issue to actually do the update. > make post.jar support better args for using tutorial > > > Key: SOLR-230 > URL: https://issues.apache.org/jira/browse/SOLR-230 > Project: Solr > Issue Type: New Feature > Components: update > Reporter: Hoss Man > > SOLR-86 create post.jar which eliminated the need for post.sh ... but as > noticed in > SOLR-164 there are still some cases in the tutorial that require direct use > of curl (deleting) and there are some nice things about post.sh that post.jar > doesn't support (defaulting the URL) > this issue is to tackle some of the ideas Bertrand and I posted as a comment > in SOLR-86 after it was resolved > Bertrand Delacretaz [19/Feb/07 12:35 AM] ... > Considering the tutorial examples > (http://lucene.apache.org/solr/tutorial.html), it'd be useful to allow this > to POST its standard input, or the contents of a command-line parameter: ... > Hoss Man [19/Feb/07 11:50 AM] > yeah ... i think we should hardcode http://localhost:8983/solr/update with a > possible override by system prop, then add either a command line switch other > another system prop indicating to use the command line as filenames or as raw > data, and another op for stdin. > java -jar -Ddata=files post.jar *.xml > java -jar post.jar *.xml ... data=files being the default > echo "name:DDR" | java -jar -Ddata=stdin > post.jar > cat *.xml | java -jar -Ddata=stdin post.jar > java -jar -Ddata=args post.jar "name:DDR" > java -jar -Durl=http://localhost:8983/solr/update post.jar *.xml -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (SOLR-230) make post.jar support better args for using tutorial
make post.jar support better args for using tutorial Key: SOLR-230 URL: https://issues.apache.org/jira/browse/SOLR-230 Project: Solr Issue Type: New Feature Components: update Reporter: Hoss Man Assigned To: Erik Hatcher We need a cross platform replacement for the post.sh. The attached code is a direct replacement of the post.sh since it is actually doing the same exact thing. In the future one can extend the CLI with other feature like auto commit, etc.. Right now the code assumes that SOLR-85 is applied since we using the servlet of this issue to actually do the update. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: post.jar
Hello, Thank you for the jar. regards, aditya > Hi, > > On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> ...I have just started using the solr server in the tutorial they have >> given >> an example which uses post.jar but i dont find the post.jar in the solr >> download and i find only the post.sh... > > The tutorial on the website reflects the current development state, > but the post.jar code is not yet included in a released version of > Solr. > > In the meantime, you can download a version of post.jar from > http://tinyurl.com/2bnm4a (or compile it yourself from the current > trunk code, if you prefer). > > -Bertrand >
Re: post.jar
Hi, On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ...I have just started using the solr server in the tutorial they have given an example which uses post.jar but i dont find the post.jar in the solr download and i find only the post.sh... The tutorial on the website reflects the current development state, but the post.jar code is not yet included in a released version of Solr. In the meantime, you can download a version of post.jar from http://tinyurl.com/2bnm4a (or compile it yourself from the current trunk code, if you prefer). -Bertrand
post.jar
Hello all, I have just started using the solr server in the tutorial they have given an example which uses post.jar but i dont find the post.jar in the solr download and i find only the post.sh, i work on a windows machine and sh scripts dont work on the windows machine. can any one tell me where can i find this post.jar regards, aditya
Re: svn commit: r509013 - /lucene/solr/trunk/example/exampledocs/post.jar
On Feb 18, 2007, at 8:19 PM, Chris Hostetter wrote: : Log: : Check in binary post.jar to make life easier for curl unfriendly environments : : Added: : lucene/solr/trunk/example/exampledocs/post.jar (with props) whoa ... do we really want to commit the post.jar? .. it's built as part of example (when the war is built/copied) so why commit it? Hmm... good point. I had thought it made sense to be there for the binary distributions, but since it gets built there then all is well. I'll remove it. I'm getting ready to teach a workshop on Solr/Lucene and wanted to reduce my Cygwin/Windows issues, so was over zealous! :) Erik
Re: svn commit: r509013 - /lucene/solr/trunk/example/exampledocs/post.jar
: Log: : Check in binary post.jar to make life easier for curl unfriendly environments : : Added: : lucene/solr/trunk/example/exampledocs/post.jar (with props) whoa ... do we really want to commit the post.jar? .. it's built as part of example (when the war is built/copied) so why commit it? -Hoss