You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2007/05/08 22:45:15 UTC

[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 "<delete><query>name:DDR</query></delete>" | java -jar -Ddata=stdin post.jar
cat *.xml | java -jar -Ddata=stdin post.jar
java -jar -Ddata=args post.jar "<delete><query>name:DDR</query></delete>"
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 "<delete><query>name:DDR</query></delete>" | java -jar -Ddata=stdin post.jar
> cat *.xml | java -jar -Ddata=stdin post.jar
> java -jar -Ddata=args post.jar "<delete><query>name:DDR</query></delete>"
> 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.