You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Daniel Persson <ma...@gmail.com> on 2011/05/24 09:54:31 UTC
Sorting count
Hi.
Using solr 1.4.0 is there any way to sort fields depending on counted
multi-value fields?
At the moment i use a sort statement like
<str name="sort">catalog_id desc, score desc</str>
the statement i want to use is more like
<str name="sort">count(catalog_id) desc, score desc</str>
I want the results that are present in a larger amount of catalogs to be
sorted higher.
I could solve it by rebuilding the index with a catalog_count. Just curious
is this function, or something like it is present?
Best regards
Daniel