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