[
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: [email protected]
For additional commands, e-mail: [email protected]