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

Dariusz Suchojad commented on SOLR-216:
---------------------------------------

Hello,

there are a few Python clients available, which is quite confusing, so I took 
the one with the richest API available (http://code.google.com/p/solrpy/, rev5)
and created a set of test cases which you may found in attached file 
test_all.py.
The tests are meant to be run with Solr 1.2 and only after applying attached
solr-solrpy-r5.patch, which fixes a couple of issues while still trying not to
break the already exposed API. Attached is also a solr.py module with the
patch applied. One of the tests is failing deliberately, I'm simply not sure 
whether doing batch updates is still feasible with Solr 1.2.

What I'd like to propose now is to integrate all the code available - solrpy
and pysolr from code.google.com, the crude & tiny one from Solr SVN
(http://svn.apache.org/viewvc/lucene/solr/trunk/client/python/), various patches
from JIRA - replace the XML parser used currently with elementtree or, 
optionally, 
lxml (which is *the* toolkit for any high-performance XML processing with 
Python),
add more tests and have one officially blessed rich client for Python.
I'm willing to do all the dirty work if there's a consensus among people using
Solr with Python that doing so is a good idea.

What do you think?

> 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-solrpy-r5.patch, solr.py, solr.py, solr.py, 
> solr.py, test_all.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