Re: How to iterate the solrdocumentlist result

2009-05-03 Thread Avlesh Singh
SolrDocumentList extends an ArrayList. You can iterate on it the way you would do on a list. Here's an example for(SolrDocument doc : listingSearchResponse.getResults()){ > System.out.print(doc.getFieldValue("yourFieldName")); > } > Cheers Avlesh On Mon, May 4, 2009 at 10:36 AM, ahmed baseet w

How to iterate the solrdocumentlist result

2009-05-03 Thread ahmed baseet
Hi All, I'm able to get the whole result bundle by using the following method, QueryResponse qr = server.query(query); SolrDocumentList sdl = qr.getResults(); but I'm not able to iterate over the results. I converted this to string and displayed that and that is a full res