Hi, you can use it via SolrJ:
QueryResponse rsp = solrServer.query(query); SolrDocumentList docs = rsp.getResults(); for (SolrDocument doc : docs) { long id = (Long) doc.getFieldValue("id"); // create your higher level object here ... } SolrJ get the docs either from xml or binary stream (from a remote connection to a solr server) depending on what you have set at initialization time: solrServer.setParser(new BinaryResponseParser()); Regards, Peter. > I worling through the SolrCode and i want to know how the class SolrDocument > used in Solr !? > > When i start and debug a normal search, SolrDocument never been used. > (Standard SearchHandler with q-Query). i thought, this class is a > representation of a Doc from the Index as a higher level doc above the > lucene doc. > > so i thougt that solr convert a lucene doc to a SolrDoc and work with this. > but solr doing an prefetch with DocSllice/DocSet/DocList ... an get the real > lucene doc in the XML-Writer for the response. > > So for what is SolrDocument ???? > > thxxxx > -- http://jetwick.com twitter search prototype