SolrAPI
- Python implementation of the basic operation in the Solr Rest
- License: BSD
- Compatible With: python 2.7, 3.2 and 3.4
See Build: https://travis-ci.org/picleslivre/solrapi
API Usage
>>>from SolrAPI import Solr
>>>s = Solr('http://some.solr.url')
Using select method: s.select(query):
>>>s.select('id:34987782')
>>>s.select('collection:usa')
Using delete method: s.delete(query, commit=True/False):
>>>s.delete('*:*')
>>>s.delete('id:08927973')
>>>s.delete('id:08927973', commit=True)
Using update method: s.delete(query, commit=True/False):
>>>s.update('XXXYYY')
>>>s.update('XXXYYY', commit=True)
Using commit method: s.commit():
>>>s.commit()
How to Install?
>$ pip install solrAPI
For develop version
-e git+git@github.com:picleslivre/solrapi.git#egg=solrapi