Problems with mySolr Wiki
Hi Solr-Users, i try to follow the instructions [1] from the solr-wiki to build my custom solr server. First i have created the directory-structure. mySolr --solr --conf --schema.xml --solrconfig.xml --solr.xml <-- Where i can find this file? --build.xml <-- copy & paste from the wiki Than i run the command $ ant mysolr.dist Buildfile: build.xml BUILD FAILED /root/buildouts/mySolr/build.xml:10: Cannot find ${env.SOLR_HOME}/build.xml imported from /root/buildouts/mySolr/build.xml Total time: 0 seconds Maybe someone have an tipp for me? Thanks for your help. Christian [1] http://wiki.apache.org/solr/mySolr
solr.py problems with german "Umlaute"
Hi all, i try to add/update documents with the python solr.py api. Everything works fine so far but if i try to add a documents which contain German Umlaute (ö,ä,ü, ...) i got errors. Maybe someone has an idea how i could convert my data? Should i post this to JIRA? Thanks for help. Btw: I have no sitecustomize.py . This is my script: -- from solr import * title="Übersicht" kw = {'id':'12','title':title,'system':'plone','url':'http://www.google.de'} c = SolrConnection('http://192.168.2.13:8080/solr') c.add_many([kw,]) c.commit() -- This is the error: File "t.py", line 5, in ? c.add_many([kw,]) File "/usr/local/lib/python2.4/site-packages/solr.py", line 596, in add_many self.__add(lst, doc) File "/usr/local/lib/python2.4/site-packages/solr.py", line 710, in __add lst.append('%s' % ( UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)
solr.py facet.field question
Hi, how can i specify more than one facet.field in the query method from solr.py? These trys doesn´t work: res = c.query(q="Klaus", facet="true", facet_limit="-1", facet_field=['Creator','system']) res = c.query(q="Klaus", facet="true", facet_limit="-1", facet_field='Creator', facet_field='system') thanks in advance Christian
Indexing Doc, PDF, ... from filesystem (Newbie Question)
Hi Solr Users, i have set up a Solr-Server with a custom Schema. Now i have updated the index with some content form xml-files. Now i try to update the contents of a folder. The folder consits of various document-types (pdf,doc,xls,...). Is there anywhere an howto how can i parse the documents, make an xml of the paresed content and post it to the solr server? Thanks in advance. Christian
Python Utilitys for Solr
Hi i just play a bit with: http://svn.apache.org/repos/asf/lucene/solr/trunk/client/python/solr.py Is it possible that this library is a bit out of date? If i try to get the example running. I got a parese error from the result. Maybe the response format form Solr has changed? If you can have a look at this method def doUpdateXML(self, request): try: rsp = self.doPost(self.solrBase+'/update', request, self.xmlheaders) data = rsp.read() finally: if not self.persistent: self.conn.close() #fast path... don't parse XML if we recognize response as success if not data.startswith(' 0name="QTime">4 status = "" -Chrisitan