Read about how we built the hackday code into a full demo http://www.flax.co.uk/blog/2014/02/06/how-we-built-a-search-engine-for-uk-mp-tweets-with-solr-python-stanfordnlp/
The code for this is in https://github.com/flaxsearch/hackday/tree/master/ukmp