On Mar 21, 2007, at 10:23 AM, Antonio Eggberg wrote:
> this brings me to the frequency-based faceting ..
> for lack of better term. I am trying to figure out a
way to present
> the index based on frequency i.e. if i could find a way
to do reverse
> example :
>
> By Author (15)
> - abc (8)
> - xyz (7)
> By Country ..
> - ..
> - ..
>
> Keyword XX or Phrase YYY
> - Author (15)
> - Country (25)
>
> So in the case above the keyword is dynamic and its
based on a
> frequency
> i.e top 100 keywords or phrase beside the stop words
etc.. This is
> what I
> am labeling as "dynamic frequency based
faceting" like the example URL
> above..
Solr supports facet queries. In your example, Solr could be
asked
for a count of all documents (matching other constraints
perhaps too,
of course) that have an Author field... that would be
&facet.query=Author:[* TO *], or the opposite, all
documents that do
not have an Author field with &facet.query=-Author:[* TO
*].
Give saved searches a try in Flare for an example, type each
of those
expressions as unique constraints and save them. You'll see
what I
mean then, I think. Also, look at the individual facet
pages (the
"browse" links by each facet) and see the last
entry that shows "---
NO VALUE ---". Is this getting warmer to what you're
after?
> Maybe I don't know enough maybe its possible to do with
solr today.
> I have
> a feeling that one must extend request handler.. but I
haven't
> looked into
> it yet.
Let me know if the above information doesn't do what you're
after,
but I think we got the use-case you're after covered.
> I am trying out the flare as plugin I will get back to
you with
> feedback. That
> was very fast converting it to flare plugin.
again, it's a hack at this point. much more work is needed
to make
it easily configurable, and to put the templates into the
plugin too
(and make them overridable/extensible too).
Erik
|