Lucid Imagination

Secondary links

  • Contact Us
  • Sign Up or Login
  • Downloads
  • Solutions
    • Partners |
    • Blog |
    • Software |
    • Services |
    • Training |
    • Case Studies |
    • Webcasts |
  • Developers
    • Blog |
    • Tech Articles |
    • Community |
    • Docs |
    • Downloads |
    • Whitepapers |
    • Podcasts |
  • About
    • Market Overview |
    • Management |
    • Company News |
    • In the Media |
    • Contact |

beta

Start new search

Back to search results

  1. FromDate
  2. Marcus Herou1969-12-31 19:00
  3. Marcus Herou1969-12-31 19:00
  4. Yonik Seeley1969-12-31 19:00
  5. Grant Ingersoll1969-12-31 19:00
  6. Marcus Herou1969-12-31 19:00

[solr-dev] Abstractify FacetComponent and SimpleFacets

Subject:
Re: Abstractify FacetComponent and SimpleFacets
From:
Marcus Herou <marcus.herou@...>
Date:
1969-12-31 19:00
Hi, thanks I wondered if it already was incorporated or such.

Yes it is a little related to StatsComponent ( sum, avg etc) but I think
that this solves another problem (correct me if I'm wrong) since it
transforms the resulting field in a functionquery instead of counting as per
default (today). I think that the StatsComponent does something similar but
operates on the resulting facet. I hook in earlier.

I used the StatsComponent as template for another component which I call
CountComponent (
http://svn.tailsweep.com/opensource/solr-contrib/trunk/src/main/java/org/apache/solr/handler/component/CountComponent.java)
which emulates the SQL equiv: "select count(distinct field)". Added the
"patch" to JIRA (https://issues.apache.org/jira/browse/SOLR-1814) That one
works with sharding as well. The problem is that one need to send the damn
entire unique hashset of field across the shards... (can get big). See that
Ted and Erik have commented now... Perhaps I have created something which
already exists... damn

Both these Components probably need to be refined for a release/merge into
Solr.

How do I move onward with these ?






On Fri, Mar 12, 2010 at 2:02 AM, Grant Ingersoll <gsingers@apache.org>wrote:

On Mar 11, 2010, at 6:30 PM, Yonik Seeley wrote:
Interesting looking stuff Marcus! Seems sort of related to stat.facet (calc stats on unique facet values) http://wiki.apache.org/solr/StatsComponent
And https://issues.apache.org/jira/browse/SOLR-1622
On Thu, Mar 11, 2010 at 5:49 PM, Marcus Herou <marcus.herou@tailsweep.com> wrote:
I have now implemented Facet with FunctionQueries it is really cool!
Sorry
but even though the author of SimpleFacets (Yonik) says in the javadoc
that
one should subclass it to leverage more functionality I did not really
find
that very true in this case.
Hoss was actually the first author of SimpleFacets - SOLR-44 (Solr didn't even have built-in faceting when it came into the incubator!) -Yonik http://www.lucidimagination.com
-- Marcus Herou CTO and co-founder Tailsweep AB +46702561312 marcus.herou@tailsweep.com http://www.tailsweep.com/

Solr Powered

Give us your feedback

  • Lucene
  • Solr
  • Nutch
  • Tika
  • Mahout
  • Droids
  • PyLucene
  • Lucene.Net
  • Lucy
  • Lucene4c
  • Open Relevance Project
  • How We Can Help:
    • Getting Started |
    • Support Subscriptions |
    • White Papers |
    • Training |
    • Consulting |
    • Contact Us |
  • Developers:
    • Blog |
    • Documentation |
    • Tech Articles |
    • Podcasts and Videos |
    • Community |
  • Downloads:
    • LucidWorks for Solr |
    • LucidWorks for Lucene |
    • LucidGaze for Solr |
    • LucidGaze for Lucene |
  • Products:
  • Services:

Contact | Privacy Policy | Legal Terms of Use | Copyrights and Disclaimers | Admin

Apache Solr, Apache Lucene, ApacheCon and their logos are trademarks of the Apache Software Foundation.

© 2010 Lucid Imagination. All Right reserved.