SolrClient client = new SolrClient();
File2Index file = new File2Index("<a att=\"xml\">This is a test</a>".getBytes(), MimeTypeConstants.XML, "/testpath", 0);
client.indexDocument(file, IndexingManager.getInstance().getIndexerForMediaType(MimeTypeConstants.XML));
SolrDocumentList list = client.query("xml", 0);
SolrDocument document = list.iterator().next();
System.out.println(document.getFieldValue("id"));
// Protocol.registerProtocol("https", new Protocol("https",
// new EasySSLProtocolSocketFactory(), 443));