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

Yonik Seeley commented on SOLR-216:
-----------------------------------

I quickly tried the example in comments, and ran into some issues:

The examples should be made to work with the example Solr install... so instead 
of
   >>> c = SolrConnection('http://localhost:8983')
   >>> c.add(id='500', name='python test doc', active=True)

It should be
   >>> c = SolrConnection('http://localhost:8983/solr')    #need to specify 
full path to solr
   >>> c.add(id='500', name='python test doc')                #active field 
doesn't exist

After that, a document is added, but I get an exception on the python side.
I guess it's probably related to response parsing?  It should probably be 
updated to check the HTTP response and not parse the response.


> Improvements to solr.py
> -----------------------
>
>                 Key: SOLR-216
>                 URL: https://issues.apache.org/jira/browse/SOLR-216
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - python
>    Affects Versions: 1.2
>            Reporter: Jason Cater
>            Assignee: Mike Klaas
>            Priority: Trivial
>         Attachments: solr.py
>
>
> I've taken the original solr.py code and extended it to include higher-level 
> functions.
>   * Requires python 2.3+
>   * Supports SSL (https://) schema
>   * Conforms (mostly) to PEP 8 -- the Python Style Guide
>   * Provides a high-level results object with implicit data type conversion
>   * Supports batching of update commands

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to