I stand corrected.  (and I "knew" that, just wasn't thinking fully when 
replying from my mobile)   

I still say there's nothing wrong with using post.jar to send in Solr XML 
provided commits are managed appropriately.  Are there any drawbacks others 
know of to using post.jar like one would use curl?

        Erik




On Jun 22, 2012, at 04:37 , Jan Høydahl wrote:

> Actually, post.jar does not use SolrJ at all, thus it is simple and light 
> with no dependencies. It simply uses HttpURLConnection :)
> Also have a look at SOLR-599 which has an interesting light-weight SolrJ 
> server also without the extra deps.
> 
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.cominvent.com
> Solr Training - www.solrtraining.com
> 
> On 21. juni 2012, at 00:23, Erik Hatcher wrote:
> 
>> I think it's a bit of an "it depends" on whether post.jar is the Right 
>> choice for production. 
>> 
>> It -is- SolrJ inside after all, Erick :) and it's pretty much the same as 
>> using curl. Just be sure you control commits as needed. 
>> 
>>   Erik
>> 
>> On Jun 20, 2012, at 15:18, Bruno Mannina <bmann...@free.fr> wrote:
>> 
>>> Hi Erick,
>>> 
>>>> I doubt you'll find any significant difference in indexing speed. But the
>>>> post.jar file is really intended as a demo program to quickly get the
>>>> examples working. It was never intended to be a production-ready
>>>> program. I'd think about using something like SolrJ etc. to index the docs.
>>> 
>>> ah?! I don't know yet SolrJ :(
>>> I need to know how to program in java?
>>> 
>>> I transformed all my xml source files to the xml structure below and I'm 
>>> using post.jar
>>> I thought it was (post.jar) a standard tool to index docs.
>>> 
>>>> And I'm assuming your documents are in the approved Solr format, somthing
>>>> like
>>>> <add>
>>>> <doc>
>>>> <field name="myfield">value for field</field>
>>>>   .
>>>>   .
>>>> </doc>
>>>> <doc>
>>>>  .
>>>>  .
>>>>  .
>>>> </doc>
>>>> </add>
>>> Yes all my xml docs have this format.
>>> 
>>>> solr will not index arbitrary XML. If you're trying to do this, you'll
>>>> need to transform
>>>> your arbitrary XML into the above format, consider SolrJ or something
>>>> like that in
>>>> this case.
>>> 
>>> If all my xml docs are in the xml structure above, is it necessary to use 
>>> SolrJ ?
>>> 
>>> 
> 

Reply via email to