In Solr a facet is assigned one number: the number of documents in which it appears. The facets are sorted by that number. Would your use case be solved with a second number that is formulated from the relevance of the associated documents? For example:
facet relevance = count * sum(scores of documents) with coefficients for each input? To do this, for each document counted by the facet, you then have to find that document in the result list and pull the score. This would be much slower than the current "count the documents" algorithm. But if you have limited the document list via filter, this could still be fast enough for interactive use. If I wanted to make a tag cloud, this is how I would do it. On Fri, Oct 9, 2009 at 3:58 PM, Asif Rahman <a...@newscred.com> wrote: > Hi Wojtek: > > Sorry for the late, late reply. I haven't implemented this yet, but it is > on the (long) list of my todos. Have you made any progress? > > Asif > > On Thu, Aug 13, 2009 at 5:42 PM, wojtekpia <wojte...@hotmail.com> wrote: > >> >> Hi Asif, >> >> Did you end up implementing this as a custom sort order for facets? I'm >> facing a similar problem, but not related to time. Given 2 terms: >> A: appears twice in half the search results >> B: appears once in every search result >> I think term A is more "interesting". Using facets sorted by frequency, >> term >> B is more important (since it shows up first). To me, terms that appear in >> all documents aren't really that interesting. I'm thinking of using a >> combination of document count (in the result set, not globally) and term >> frequency (in the result set, not globally) to come up with a facet sort >> order. >> >> Wojtek >> -- >> View this message in context: >> http://www.nabble.com/Facets-with-an-IDF-concept-tp24071160p24959192.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > > -- > Asif Rahman > Lead Engineer - NewsCred > a...@newscred.com > http://platform.newscred.com > -- Lance Norskog goks...@gmail.com