c:\Users\sgeissler\workspace\SolrTest\src\SolrTest>jython.bat --version jython.bat --version Jython 2.5.2 c:\Users\sgeissler\workspace\SolrTest\src\SolrTest>python --version python --version Python 2.7.3 c:\Users\sgeissler\workspace\SolrTest\src\SolrTest>more testsolr.py more testsolr.py # -*- coding: utf-8 -*- ''' Created on 13.04.2013 @author: sgeissler ''' import solr print "connecting to localhost:8983/solr ..." # create a connection to a solr server s = solr.SolrConnection('http://localhost:8983/solr', debug=True) # add a document to the index s.add(id=1, title='Lucene in Action', author='Erik Hatcher') s.commit() # do a search response = s.query('title:lucene') for hit in response: print hit['title'] c:\Users\sgeissler\workspace\SolrTest\src\SolrTest>python testsolr.py python testsolr.py connecting to localhost:8983/solr ... [u'Lucene in Action'] c:\Users\sgeissler\workspace\SolrTest\src\SolrTest>jython.bat testsolr.py jython.bat testsolr.py connecting to localhost:8983/solr ... Traceback (most recent call last): File "testsolr.py", line 23, in print hit['title'] KeyError: 'title' c:\Users\sgeissler\workspace\SolrTest\src\SolrTest>dir c:\Tools\jython2.5.2\Lib\site-packages\solrpy* dir c:\Tools\jython2.5.2\Lib\site-packages\solrpy* Volume in drive C is OS Volume Serial Number is A4F2-E260 Directory of c:\Tools\jython2.5.2\Lib\site-packages 05.04.2013 14:59 solrpy-0.9.5-py2.5.egg 0 File(s) 0 bytes 1 Dir(s) 237.234.667.520 bytes free c:\Users\sgeissler\workspace\SolrTest\src\SolrTest>dir c:\Tools\python27\Lib\site-packages\solrpy* dir c:\Tools\python27\Lib\site-packages\solrpy* Volume in drive C is OS Volume Serial Number is A4F2-E260 Directory of c:\Tools\python27\Lib\site-packages 05.04.2013 12:10 29.362 solrpy-0.9.5-py2.7.egg 1 File(s) 29.362 bytes 0 Dir(s) 237.234.667.520 bytes free