Hey Joey, You should first configure your deployed Solr instance by adding/changing the schema.xml and solrconfig.xml. After that you can use SolrJ to connect to that Solr instance and add documents to it. On the link i posted earlier, you'll find à couple of examples on how to do that.
- Patrick Verstuurd vanaf mijn iPhone Op 13 dec. 2011 om 20:53 heeft Joey <vanjo...@gmail.com> het volgende geschreven: > Thanks Patrick for the reply. > > What I did was un-jar solr.war and created my own web application. Now I > want to write my own servlet to index all files inside a folder. > > I suppose there is already solrserver instance initialized when my web app > started. > > How can I access that solr server instance in my servlet? > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-get-SolrServer-within-my-own-servlet-tp3583304p3583416.html > Sent from the Solr - User mailing list archive at Nabble.com.