Maybe?: Just keep the 'weightages' in an external store of some kind
(rdbms, nosql like mongodb, just a straight text config file that your
app loads into a hash internally, whatever), rather than Solr, and have
your app look them up for each facet value to be displayed, after your
app fetches the facet values from Solr. There's no need to use Solr for
this, although there might be various tricky ways to do so if you really
wanted to, there's no perfectly straightforward way.
On 1/20/2011 12:39 PM, sivaprasad wrote:
Hi,
I am building tag cloud for products by using facets.I made tag names as
facets and i am taking facets count as reference to display tag cloud.Each
product has tags with their own weightage.Let us say,
For example
prod1 has tag called “Light Weight” with weightage 20,
prod2 has tag called “Light Weight” with weightage 100,
If i get facet for “Light Weight” , i will get Light Weight (2) ,
here i need to consider the weightage in to account, and the result will be
Light Weight (120)
How can we achieve this?Any ideas are really helpful.
Regards,
Siva