Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8294C847 for ; Thu, 18 Jul 2013 17:36:52 +0000 (UTC) Received: (qmail 47706 invoked by uid 500); 18 Jul 2013 17:36:49 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 47637 invoked by uid 500); 18 Jul 2013 17:36:49 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 47621 invoked by uid 99); 18 Jul 2013 17:36:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jul 2013 17:36:49 +0000 Date: Thu, 18 Jul 2013 17:36:49 +0000 (UTC) From: "Joel Bernstein (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SOLR-5045) Pluggable Analytics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-5045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joel Bernstein updated SOLR-5045: --------------------------------- Description: This ticket provides a pluggable aggregation framework through the introduction of a new *Aggregator* interface and a new search component called the *AggregatorComponent*. The *Aggregator* interface extends the PostFilter interface providing methods that allow DelegatingCollectors to perform aggregation at collect time. Aggregators were designed to play nicely with the CollapsingQParserPlugin introduced in SOLR-5027. The *AggregatorComponent* manages the output and distributed merging of aggregate results. This ticket is an alternate design to SOLR-4465 which had the same basic idea but a very different implementation. This implementation resolves the caching issues in SOLR-4465 and combined with SOLR-5027 plays nicely with field collapsing. It is also much less intrusive on the core code as it's entirely implemented with plugins. Initial Syntax for the sample SumQParserPlugin Aggregator: ../select?q=\*:\*&wt=xml&indent=true&fq=\{!sum field=popularity id=mysum\}&aggregate=true fq=\{!sum field=popularity id=mysum\} - Calls the SumQParserPlugin telling it to sum the field popularity. aggregate=true - turns on the AggregatorComponent was: This ticket provides a pluggable aggregation framework through the introduction of a new *Aggregator* interface and a new search component called the *AggregatorComponent*. The *Aggregator* interface extends the PostFilter interface providing methods that allow DelegatingCollectors to perform aggregation at collect time. Aggregators were designed to play nicely with the CollapsingQParserPlugin introduced in SOLR-5027. The *AggregatorComponent* manages the output and distributed merging of aggregate results. This ticket is an alternate design to SOLR-4465 which had the same basic idea but a very different implementation. This implementation resolves the caching issues in SOLR-4465 and combined with SOLR-5027 plays nicely with field collapsing. It is also much less intrusive on the core code as it's entirely implemented with plugins. Initial Syntax for the sample SumQParserPlugin Aggregator: ../select?q=*:*&wt=xml&indent=true&fq=\{!sum field=popularity id=mysum\}&aggregate=true fq=\{!sum field=popularity id=mysum\} - Calls the SumQParserPlugin telling it to sum the field popularity. aggregate=true - turns on the AggregatorComponent > Pluggable Analytics > ------------------- > > Key: SOLR-5045 > URL: https://issues.apache.org/jira/browse/SOLR-5045 > Project: Solr > Issue Type: New Feature > Components: search > Affects Versions: 5.0 > Reporter: Joel Bernstein > Priority: Minor > Fix For: 5.0 > > Attachments: SOLR-5045.patch, SOLR-5045.patch > > > This ticket provides a pluggable aggregation framework through the introduction of a new *Aggregator* interface and a new search component called the *AggregatorComponent*. > The *Aggregator* interface extends the PostFilter interface providing methods that allow DelegatingCollectors to perform aggregation at collect time. Aggregators were designed to play nicely with the CollapsingQParserPlugin introduced in SOLR-5027. > The *AggregatorComponent* manages the output and distributed merging of aggregate results. > This ticket is an alternate design to SOLR-4465 which had the same basic idea but a very different implementation. This implementation resolves the caching issues in SOLR-4465 and combined with SOLR-5027 plays nicely with field collapsing. It is also much less intrusive on the core code as it's entirely implemented with plugins. > Initial Syntax for the sample SumQParserPlugin Aggregator: > ../select?q=\*:\*&wt=xml&indent=true&fq=\{!sum field=popularity id=mysum\}&aggregate=true > fq=\{!sum field=popularity id=mysum\} - Calls the SumQParserPlugin telling it to sum the field popularity. > aggregate=true - turns on the AggregatorComponent -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org