lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Tomblin <ptomb...@xcski.com>
Subject How to access the information from SolrJ
Date Thu, 01 Oct 2009 18:19:30 GMT
When I do a query directly form the web, the XML of the response
includes how many results would have been returned if it hadn't
restricted itself to the first 10 rows:

For instance, the query:
http://localhost:8080/solrChunk/nutch/select/?q=*:*&fq=category:mysites
returns:
<response>
<lst name='responseHeader'>
<int name='status'>0</int>
<int name='QTime'>0</int>
<lst name='params'>
<str name='q'>*:*</str>
<str name='fq'>category:mysites</str>
</lst>
</lst>
<result name='response' numFound='1251' start='0'>
<doc>
<str name='category'>mysites</str>
<long name='chunkNum'>0</long>
<str name='chunkUrl'>http://localhost/Chunks/mysites/0-http___xcski.com_.xml</str>
<str name='concept'>Anatomy</str>
...

The value I'm talking about is in the "numFound" attribute of the "result" tag.

I don't see any way to retrieve it through SolrJ - it's not in the
QueryResponse.getHeader(), for instance.  Can I retrieve it somewhere?

--
http://www.linkedin.com/in/paultomblin

Mime
View raw message