> 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
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.
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