[ 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/8/13 12:29 AM: -------------------------------------------------------------------------- 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, it does NOT throw any exception, simply does not return any stat result. If I execute the same query in a sharded enviorement (solrcloud) with the paramater distrib=false, it returns stats: http://localhost:8983/solr/select?q=*:*&olap=true&olap.req1.statistic.stat1=sum(price)&distrib=false It is like Analytics Component does not support distributed query (shards solrcloud) 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 solrcloud shard environment, but I am not sure. Please I really need help because I am close to the deadline of a project and need to make the decision whether continue with the analytics component or choose another approach to fix a big issue “stats.facet do not support multivalue fields”, related to this jira ticket https://issues.apache.org/jira/browse/SOLR-1782, we have our index split in many shards using features of solrcloud 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) 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. If I execute the same query in a sharded enviorement (solrcloud) with the paramater distrib=false, it returns stats: http://localhost:8983/solr/select?q=*:*&olap=true&olap.req1.statistic.stat1=sum(price)&distrib=false It is like Analytics Component does not support distributed query (shards solrcloud) 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 solrcloud shard environment, but I am not sure. Please I really need help because I am close to the deadline of a project and need to make the decision whether continue with the analytics component or choose another approach to fix a big issue “stats.facet do not support multivalue fields”, related to this jira ticket https://issues.apache.org/jira/browse/SOLR-1782, we have our index split in many shards using features of solrcloud > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org