lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shaun Campbell <campbell.sh...@gmail.com>
Subject Re: Tips for getting unique results?
Date Sun, 10 Apr 2011 21:14:16 GMT
Hi Pete

Still think facets are what you need. We use facets to identify the most
common tags for documents in our library.  I use them to print the top 25
most common document tags.  The sort by count (the default) gives you the
one with the highest count first and then the next most common and so on.

Hope this helps.
Shaun

On 8 April 2011 19:28, Peter Spam <pspam@mac.com> wrote:

> Thanks for the note, Shaun, but the documentation indicates that the
> sorting is only in ascending order :-(
>
> facet.sort
>
> This param determines the ordering of the facet field constraints.
>
>        • count - sort the constraints by count (highest count first)
>        • index - to return the constraints sorted in their index order
> (lexicographic by indexed term). For terms in the ascii range, this will be
> alphabetically sorted.
> The default is count if facet.limit is greater than 0, index otherwise.
>
> Prior to Solr1.4, one needed to use true instead of count and false instead
> of index.
>
> This parameter can be specified on a per field basis.
>
>
> -Pete
>
> On Apr 8, 2011, at 2:49 AM, Shaun Campbell wrote:
>
> > Pete
> >
> > Surely the default sort order for facets is by descending count order.
>  See
> > http://wiki.apache.org/solr/SimpleFacetParameters.  If your results are
> > really sorted in ascending order can't you sort them externally eg Java?
> >
> > Hope that helps.
> >
> > Shaun
>
>

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