okfn/openspending — Issue #276: Add solr setup instructions to install instructions
Author: rgrp
Created: 2011-10-28 22:07:24+00:00
State: open

I believe for running production version of openspending solr is required. However this is not mentioned in README in develop at the moment. We should add some info.

This is also relevant for tests. Currently, when running the tests currently I get a lot of errors like the following which I believe are solr related:

======================================================================
ERROR: openspending.test.unit.lib.test_search.TestSearch.test_search_load_time
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rgrp/venv/openspending/lib/python2.6/site-packages/nose/case.py", line 381, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/home/rgrp/venv/openspending/lib/python2.6/site-packages/nose/util.py", line 478, in try_run
return func()
File "/home/rgrp/src/openspending/openspending/test/unit/lib/test_search.py", line 19, in setup
self.solr.add(**ourdict)
File "/home/rgrp/venv/openspending/lib/python2.6/site-packages/solr/core.py", line 678, in add
return Solr.add_many(self, [fields], commit=_commit)
File "/home/rgrp/venv/openspending/lib/python2.6/site-packages/solr/core.py", line 326, in wrapper
return self._update(content, query)
File "/home/rgrp/venv/openspending/lib/python2.6/site-packages/solr/core.py", line 550, in _update
rsp = self._post(selector, request, self.xmlheaders)
File "/home/rgrp/venv/openspending/lib/python2.6/site-packages/solr/core.py", line 639, in _post
return check_response_status(self.conn.getresponse())
File "/home/rgrp/venv/openspending/lib/python2.6/site-packages/solr/core.py", line 1096, in check_response_status
raise ex
SolrException: HTTP code=400, reason=ERROR:unknown field '_id'