On Feb 19, 2008, at 3:08 PM, Paul Treszczotko wrote:
Hi,
I'm pretty new to SOLR and I'd like to ask your opinion on the best
practice for converting XML results you get from SOLR into something
that is better fit to display on a webpage. I'm looking for
performance and relatively small footprint, perhaps ability to
paginate thru the result set and display/process N results at a
time. Any ideas? Any tutorials you can point me to? Thanks!
Paul, this is what solrj is for.
SolrQuery q = new SolrQuery();
q.setRows(10);
q.setStart(40);
q.setQuery("type:dogs");
QueryResponse rq = solrServer.query(q);
for( SolrDocument d : rq.getResults() ) {
String dogname = (String)d.getFieldValue("name");
...