hi, try using faceted search, http://wiki.apache.org/solr/SimpleFacetParameters
something like facet=true&facet.query=title:("web2.0" OR "ajax") facet.query - gives the number of matching documents for a query. You can run the examples in the above link and see how it works.. You can also try using facet.field, which enumerates all the terms found in a given field and also tells how many documnetss contained each term. For both the above, the set of documents it acts on are the results of q. So if you want get the facets for all documents, try q=*:* On Tue, Jul 22, 2008 at 1:43 PM, Sunil <[EMAIL PROTECTED]> wrote: > Hi All, > > I am working on a module using Solr, where I want to get the stats of > each keyword found in each field. > > If my search term is: (title:("web2.0" OR "ajax") OR > description:("web2.0" OR "ajax")) > > Then I want to know how many times web2.0/ajax were found in title or > description. > > Any suggestion on how to get this information (apart from & hl=true > variable). > > > Thanks, > Sunil > > >