RedTuna/mysolr — pull request #29 by OteCortes (2012-11-06 13:13:21+00:00)
Title: MySolrHA module

First Version of the MySolrHA module who accepts a dictionary of urls with a Write parameter if is a Solr who accepts indexations or only accept searchs.

The methods search and update has been decorated with the HA module so if connection fails, the module locate another available Solr and resend the command.

The only modification in the mysolr calls is new format to declare the objetc when using mysolrha instead of mysolr.

```python
from mysolrha import Solr
solr=Solr({'http://mainsolr:8100/index':{'write':True},'http://backupsolr:8100/index':{'write':True},'http://mainsolr:8200/index':{'write':False}})
p={'q':'*:*'}
result=solr.search(**p)
```

Limitations:
-One solr with write permission is needed in object declaration.