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

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

org.apache.*.*.... class not found exception in Internet Explorer

2009-05-03 Thread ahmed baseet
Hi, I'm trying to query solr indexer thru a web page and trying to display the result. I've the following class to query solr [I'm using the query(string) method], import org.apache.solr.common.SolrDocumentList; import org.apache.solr.common.SolrDocument; import java.util.Map; import java.util.Ite

Re: org.apache.*.*.... class not found exception in Internet Explorer

2009-05-03 Thread ahmed baseet
Missed some information. I'm working on Windows XP and my class path is this, .;E:\Program Files\Java\jdk1.6.0_05\bin;D:\firefox download\apache-solr-1.3.0\apache-solr-1.3.0\dist\solrj-lib\commons-httpclient-3.1.jar;D:\firefox download\apache-solr-1.3.0\apache-solr-1.3.0\dist\solrj-lib\apache-solr