lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Aranda <brunoara...@gmail.com>
Subject Re: Total count of facets
Date Wed, 04 Feb 2009 09:23:23 GMT
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 <shalinmangar@gmail.com>

> On Wed, Feb 4, 2009 at 2:14 PM, Bruno Aranda <brunoaranda@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message