You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Nelson Gonzalez Gonzalez (JIRA)" <ji...@apache.org> on 2013/11/08 00:55:20 UTC

[jira] [Comment Edited] (SOLR-5302) Analytics Component

    [ https://issues.apache.org/jira/browse/SOLR-5302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13816815#comment-13816815 ] 

Nelson Gonzalez Gonzalez edited comment on SOLR-5302 at 11/7/13 11:55 PM:
--------------------------------------------------------------------------

Yes my solr cloud is sharded, I split the index in two shards. I applied the patch to Solr 4.5.1 and tried to test the Analytics component with the standard solr example (exampledocs folder).
I have two shards (shard1, shard2) with 32 documets (exampledocs  post.jar). 

For example when I execute the following query in a single solr instance (no shards) it returns stats:

http://localhost:8983/solr/select?q=*:*&olap=true&olap.req1.statistic.stat1=sum(price)

Response:

<lst name="stats">
<lst name="req1">
<double name="stat1">5251.270030975342</double>
</lst>
</lst>

If I try to execute the same query in a solr cloud sharded (two shard) it return no stats result.

I see there are some methods in the AnalyticsComponent.class that are not implemented:

modifyRequest, handleResponses, finishStage

I think the not implemented methods is the reason of why the analytics component is not returning data in a shard enviorement.

Please I really need help on this.




was (Author: ngonzalez):
Yes my solr cloud is sharded, I split the index in two shards. I applied the patch to Solr 4.5.1 and tried to test the Analytics component with the standard solr example (exampledocs folder).
I have two shards (shard1, shard2) with 32 documets (exampledocs  post.jar). 

For example when I execute the following query in a single solr instance (no shards) it returns stats:

http://localhost:8983/solr/select?q=*:*&olap=true&olap.req1.statistic.stat1=sum(price)



> Analytics Component
> -------------------
>
>                 Key: SOLR-5302
>                 URL: https://issues.apache.org/jira/browse/SOLR-5302
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Steven Bower
>            Assignee: Erick Erickson
>         Attachments: SOLR-5302.patch, SOLR-5302.patch, Search Analytics Component.pdf, Statistical Expressions.pdf, solr_analytics-2013.10.04-2.patch
>
>
> This ticket is to track a "replacement" for the StatsComponent. The AnalyticsComponent supports the following features:
> * All functionality of StatsComponent (SOLR-4499)
> * Field Faceting (SOLR-3435)
> ** Support for limit
> ** Sorting (bucket name or any stat in the bucket
> ** Support for offset
> * Range Faceting
> ** Supports all options of standard range faceting
> * Query Faceting (SOLR-2925)
> * Ability to use overall/field facet statistics as input to range/query faceting (ie calc min/max date and then facet over that range
> * Support for more complex aggregate/mapping operations (SOLR-1622)
> ** Aggregations: min, max, sum, sum-of-square, count, missing, stddev, mean, median, percentiles
> ** Operations: negation, abs, add, multiply, divide, power, log, date math, string reversal, string concat
> ** Easily pluggable framework to add additional operations
> * New / cleaner output format
> Outstanding Issues:
> * Multi-value field support for stats (supported for faceting)
> * Multi-shard support (may not be possible for some operations, eg median)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org