Re: Example of using stream.file to post a binary file to solr

2010-05-07 Thread Chris Hostetter
: Sorry. That is what I meant. But, I put it wrongly. I have not been  
: able to find examples of using solrj, for this.

did you look at the link i included?

:  To POST a raw stream using SolrJ you need to use the
:  ContentStreamUpdateRequest...
: 
:  
http://wiki.apache.org/solr/ExtractingRequestHandler#Sending_documents_to_Solr


-Hoss



Re: Example of using stream.file to post a binary file to solr

2010-05-07 Thread Sandhya Agarwal
Yes, I did. But, I don't find a solrj example there. The example in  
the doc uses curl.

- Sent from iPhone

On 07-May-2010, at 8:12 PM, Chris Hostetter  
hossman_luc...@fucit.org wrote:

 : Sorry. That is what I meant. But, I put it wrongly. I have not been
 : able to find examples of using solrj, for this.

 did you look at the link i included?

 :  To POST a raw stream using SolrJ you need to use the
 :  ContentStreamUpdateRequest...
 : 
 :  
 http://wiki.apache.org/solr/ExtractingRequestHandler#Sending_documents_to_Solr


 -Hoss



Re: Example of using stream.file to post a binary file to solr

2010-05-07 Thread Praveen Agrawal
Sandhya,
Chris's link (with anchor name) directly goes to solrj example


On Fri, May 7, 2010 at 8:15 PM, Sandhya Agarwal sagar...@opentext.comwrote:

 Yes, I did. But, I don't find a solrj example there. The example in
 the doc uses curl.

 - Sent from iPhone

 On 07-May-2010, at 8:12 PM, Chris Hostetter
 hossman_luc...@fucit.org wrote:

  : Sorry. That is what I meant. But, I put it wrongly. I have not been
  : able to find examples of using solrj, for this.
 
  did you look at the link i included?
 
  :  To POST a raw stream using SolrJ you need to use the
  :  ContentStreamUpdateRequest...
  : 
  : 
 http://wiki.apache.org/solr/ExtractingRequestHandler#Sending_documents_to_Solr
 
 
  -Hoss
 



Re: Example of using stream.file to post a binary file to solr

2010-05-06 Thread Chris Hostetter

: Subject: Example of using stream.file to post a binary file to solr
...
: Can somebody please point me to an example, of how we can leverage 
: *stream.file* for streaming documents, using UpdateRequest API. (SolrJ 
: API)

the stream.file param is not used to POST files to Solr from a remote 
client, it's used to tell solr you want it to read a stream from a local 
file (ie: a file already on hte solr server)

To POST a raw stream using SolrJ you need to use the 
ContentStreamUpdateRequest...

http://wiki.apache.org/solr/ExtractingRequestHandler#Sending_documents_to_Solr


-Hoss



Re: Example of using stream.file to post a binary file to solr

2010-05-06 Thread Sandhya Agarwal
Sorry. That is what I meant. But, I put it wrongly. I have not been  
able to find examples of using solrj, for this.

- Sent from iPhone

On 07-May-2010, at 1:23 AM, Chris Hostetter  
hossman_luc...@fucit.org wrote:


 : Subject: Example of using stream.file to post a binary file to  
 solr
...
 : Can somebody please point me to an example, of how we can leverage
 : *stream.file* for streaming documents, using UpdateRequest API.  
 (SolrJ
 : API)

 the stream.file param is not used to POST files to Solr from a  
 remote
 client, it's used to tell solr you want it to read a stream from a  
 local
 file (ie: a file already on hte solr server)

 To POST a raw stream using SolrJ you need to use the
 ContentStreamUpdateRequest...

 http://wiki.apache.org/solr/ExtractingRequestHandler#Sending_documents_to_Solr


 -Hoss