: please post a snippet of Java code to add a document to the Solr index that : includes the URL reference as a String?
you mean like this one... :) http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/util/SimplePostTool.java?view=markup FWIW: if you want to talk to Solr from a Java app, the SolrJ client API is probably worth looking into rather then dealing with the HTTP connections and XML formating directly... http://wiki.apache.org/solr/Solrj -Hoss