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

Noble Paul updated SOLR-7268:
-----------------------------
    Description: 
I should be able to pipe JSON/XML/CSV or whatever is possible at the 
{{/update/*}} to a  command which in turn uses SolrJ to send the docs to the 
correct leader in native format. 
In the following examples , all connection details of the cluster is put into a 
file called solrj.properties
example :
{noformat}
cat myjson.json | solr/bin/indexer -p indexer.properties -type=json
#or a producer program
myprogram | solr/bin/indexer -p indexer.properties -type=csv
{noformat}

  was:
I should be able to pipe JSON/XML/CSV or whatever to a solrJ command line and 
SolrJ can send the docs to the correct leader in native format. This 
essentially means that, solrj will now get the ability parse most of the 
formats which solr is capable of parsing
In the following examples , all connection details of the cluster is put into a 
file called solrj.properties
example :
{noformat}
cat myjson.json | solr/bin/solrj -p solrj.properties
#or a producer program
myprogram | solr/bin/solrj -p solrj.properties
{noformat}


> Add a script to pipe data from other programs or files to Solr using SolrJ
> --------------------------------------------------------------------------
>
>                 Key: SOLR-7268
>                 URL: https://issues.apache.org/jira/browse/SOLR-7268
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Noble Paul
>
> I should be able to pipe JSON/XML/CSV or whatever is possible at the 
> {{/update/*}} to a  command which in turn uses SolrJ to send the docs to the 
> correct leader in native format. 
> In the following examples , all connection details of the cluster is put into 
> a file called solrj.properties
> example :
> {noformat}
> cat myjson.json | solr/bin/indexer -p indexer.properties -type=json
> #or a producer program
> myprogram | solr/bin/indexer -p indexer.properties -type=csv
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to