Mmh, thanks for your answer but with that I get the count of names starting with A*, but I would like to get the count of distinct surnames (or town names, or any other field that is not the name...) for the people with name starting with A*. Is that possible?
Thanks! Bruno 2009/2/4 Shalin Shekhar Mangar <shalinman...@gmail.com> > On Wed, Feb 4, 2009 at 2:14 PM, Bruno Aranda <brunoara...@gmail.com> > wrote: > > > Maybe I am not clear, but I am not able to find anything on the net. > > Basically, if I had in my index millions of names starting with A* I > would > > like to know how many distinct surnames are present in the resultset > > (similar to a distinct SQL query). > > I will attempt to have a look at the SOLR sources to try to see if this > is > > possible to implement. Any hints where to look at would be great! > > > > You can use facet.query=name:A* to get the count of names starting with A. > > -- > Regards, > Shalin Shekhar Mangar. >