[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-12-30 Thread Erik Hatcher (JIRA)

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

Erik Hatcher commented on SOLR-6435:


bq. Is 'tehfiles' intentional or misspelling?

yeah, lol - was just a comment in the script, not official usage.  We'll get 
official -help style usage output in the script as well (feel free to open a 
new JIRA if you're feeling it).

bq. Are there any plans for something - anything - that issues a delete command?

What do you have in mind?  One could still do that with the SimplePostTool, 
with {code}java -Ddata=args -Dc=tehfiles -classpath dist/solr-core-*.jar 
org.apache.solr.util.SimplePostTool dist/solr-core-*.jar 
'42'{code} however bin/post does not (currently) 
support -Ddata=args.   Certainly we wouldn't want a user to type in that XML 
incantation though, so I imagine there could be a bin/delete script that 
allowed for clean deleting by id or by query.  I'm curious what scenarios and 
interface folks imagine for a friendlier delete facility.

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-12-29 Thread Alexandre Rafalovitch (JIRA)

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

Alexandre Rafalovitch commented on SOLR-6435:
-

Is 'tehfiles' intentional or misspelling?
bq. bin/post tehfiles ~/Documents

Also. Are there any plans for something - anything - that issues a delete 
command?

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-12-29 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-6435:
---

Commit 1648479 from [~ehatcher] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1648479 ]

SOLR-6435: Added bin/post

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-12-29 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-6435:
---

Commit 1648478 from [~ehatcher] in branch 'dev/trunk'
[ https://svn.apache.org/r1648478 ]

SOLR-6435: bin/post cleanup for 5x merge

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-12-25 Thread Erik Hatcher (JIRA)

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

Erik Hatcher commented on SOLR-6435:


Put a simple stake in the ground on trunk with bin/post.

TODO's: create comparable bin/post.cmd for Windows; centralize common 
environment (like Java and variables) across bin/solr and bin/post; merge this 
to branch_5x

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-12-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-6435:
---

Commit 1647928 from [~ehatcher] in branch 'dev/trunk'
[ https://svn.apache.org/r1647928 ]

SOLR-6435: Add script to simplify posting content to Solr

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-10-28 Thread Anshum Gupta (JIRA)

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

Anshum Gupta commented on SOLR-6435:


I tried indexing *.xml and it just ended up indexing 1 file as there seems to 
be a problem with the expansion:

{quote}
solr $ bin/post gettingstarted example/exampledocs/*.xml
Collection:  gettingstarted
PATH
java -classpath 
example/solr-webapp/webapp/WEB-INF/lib/solr-core-6.0.0-SNAPSHOT.jar 
-Dc=gettingstarted -Dexample/exampledocs/hd.xml 
-Dexample/exampledocs/ipod_other.xml -Dexample/exampledocs/ipod_video.xml 
-Dexample/exampledocs/manufacturers.xml -Dexample/exampledocs/mem.xml 
-Dexample/exampledocs/money.xml -Dexample/exampledocs/monitor.xml 
-Dexample/exampledocs/monitor2.xml -Dexample/exampledocs/mp500.xml 
-Dexample/exampledocs/sd500.xml -Dexample/exampledocs/solr.xml 
-Dexample/exampledocs/utf8-example.xml -Dexample/exampledocs/vidcard.xml 
org.apache.solr.util.SimplePostTool example/exampledocs/gb18030-example.xml
SimplePostTool version 1.5
Posting files to base url http://localhost:8983/solr/gettingstarted/update 
using content-type application/xml..
POSTing file gb18030-example.xml
1 files indexed.
COMMITting Solr index changes to 
http://localhost:8983/solr/gettingstarted/update..
Time spent: 0:00:00.074
{quote}

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-10-28 Thread Erik Hatcher (JIRA)

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

Erik Hatcher commented on SOLR-6435:


Error checking is the tough part.  Latest patch requires this syntax "bin/post 
  [optional params passed to SPT]", but if the user 
omits the collection name what then?   Ugly error currently.  I suppose it 
could check for the existence of the collection and issue a clean error message.

Any objections or thoughts about committing it basically like this and iterate? 
  I don't plan on making a comparable Windows version of this myself, but 
patches welcome on that front.

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-10-28 Thread Shalin Shekhar Mangar (JIRA)

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

Shalin Shekhar Mangar commented on SOLR-6435:
-

+1

Looks great!

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-10-28 Thread Erik Hatcher (JIRA)

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

Erik Hatcher commented on SOLR-6435:


With the latest patch, my example above becomes
{code}
bin/post gettingstarted http://lucidworks.com recursive=1 delay=1
{code}

And Tim's example becomes
{code}
bin/post $EXAMPLE *.xml
{code}

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
>Assignee: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch, SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-10-27 Thread Timothy Potter (JIRA)

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

Timothy Potter commented on SOLR-6435:
--

As part of the work I'm doing for SOLR-3619, I'm also invoking the post tool 
using:

"$JAVA" -Durl=http://localhost:$SOLR_PORT/solr/$EXAMPLE/update -jar 
$SOLR_TIP/example/exampledocs/post.jar $SOLR_TIP/example/exampledocs/*.xml

Of course, this complexity should be hidden behind the simple: bin/solr post 
command

Also as part of the work in SOLR-3619, the script will be able to auto-detect 
the port a local Solr is listening too, so that users don't have to do things 
like:

bin/solr post -url http://localhost:8983/solr ...

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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



[jira] [Commented] (SOLR-6435) Add script to simplify posting content to Solr

2014-10-27 Thread Erik Hatcher (JIRA)

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

Erik Hatcher commented on SOLR-6435:


I'm doing this kind of thing to demonstrate Solr with the post.jar tool:

{code}
java -classpath example/solr-webapp/webapp/WEB-INF/lib/solr-core-*.jar 
-Ddata=web -Drecursive=1 -Ddelay=1 -Dc=gettingstarted -Dauto 
org.apache.solr.util.SimplePostTool $@
{code}

That's the kind of thing we can get bin/post to do cleanly for some very common 
use cases (file, web, data files).

> Add script to simplify posting content to Solr
> --
>
> Key: SOLR-6435
> URL: https://issues.apache.org/jira/browse/SOLR-6435
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.10
>Reporter: Erik Hatcher
> Fix For: 5.0, Trunk
>
> Attachments: SOLR-6435.patch
>
>
> Solr's SimplePostTool (example/exampledocs/post.jar) provides a very useful, 
> simple way to get common types of content into Solr.  With the new start 
> scripts and the directory refactoring, let's move this tool to a first-class, 
> non "example" script fronted tool.



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

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