On Fri, Apr 24, 2009 at 12:25 PM, ristretto.rb <ristretto...@gmail.com>wrote:
> Hello, > > Is it possible to order the facet results on some ranking score? > I've had a look at the facet.sort param, > ( > http://wiki.apache.org/solr/SimpleFacetParameters#head-569f93fb24ec41b061e37c702203c99d8853d5f1 > ) > but that seems to order the facet either by count or by index value > (in my case alphabetical.) > Facets are not ranked because there is no criteria for determining relevancy for them. They are just the count of documents for each term in a given field computed for the current result set. > > We are facing a big number of facet results for multiple termed > queries that are OR'ed together. We want to keep the OR nature of our > queries, > but, we want to know which facet values are likely to give you higher > ranked results. We could AND together the terms, to get the facet > list to be > more manageable, but we would be filtering out too many results. We > prefer to OR terms and let the ranking bring the good stuff to the > top. > > For example, suppose we have a index of all known animals and > each doc has a field AO for animal-origin. > > Suppose we search for: wolf grey forest Europe > And generate facets AO. We might get the following > facet results: > > For the AO field, lots of countries of the world probably have grey or > forest or wolf or Europe in their indexing data, so I'm asserting we'd > get a big list here. > But, only some of the countries will have all 4 terms, and those are > the facets that will be the most interesting to drill down on. Is > there > a way to figure out which facet is the most highly ranked like this? > Suppose 10 documents match the query you described. If you facet on AO, then it would just go through all the terms in AO and give you the number of documents which have that term. There's no question of relevance at all here. The returned documents themselves are of course ranked according to the relevancy score. Perhaps I've misunderstood the query? -- Regards, Shalin Shekhar Mangar.