Re: Purpose of SolrDocument.java

2010-09-03 Thread Peter Karich
> aaah okay. > > so its SolrDocument in "normal" search never been used ? its only for other > solr-plugins ? > SolrDocument is under org.apache.solr.common which is for the solr-solj.jar and not available for the solr-core.jar see e.g.: http://lucene.apache.org/solr/api/org/apache/solr/commo

Re: Purpose of SolrDocument.java

2010-09-03 Thread stockii
aaah okay. so its SolrDocument in "normal" search never been used ? its only for other solr-plugins ? -- View this message in context: http://lucene.472066.n3.nabble.com/Purpose-of-SolrDocument-java-tp1408443p1411276.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Purpose of SolrDocument.java

2010-09-03 Thread Peter Karich
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 stre

Purpose of SolrDocument.java

2010-09-02 Thread stockii
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 t