[
https://issues.apache.org/jira/browse/SOLR-8444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15098626#comment-15098626
]
Michael Sun edited comment on SOLR-8444 at 1/14/16 6:48 PM:
------------------------------------------------------------
Without any change, Solr already merge facet telemetry from shards which is
pretty nice.
Request
{code}
curl http://localhost:8228/solr/films/select -d
'q=*:*&wt=json&indent=true&debugQuery=true&json.facet={
top_genre: {
type:terms,
field:genre,
numBuckets:true
}
}'
{code}
Facet Telemetry for collection with one shard.
{code}
"facet-trace":{
"processor":"FacetQueryProcessor",
"elapse":0,
"query":null,
"sub-facet":[{
"processor":"FacetFieldProcessorUIF",
"elapse":0,
"field":"genre",
"limit":10}]},
{code}
Facet telemetry for collection with two shards. All information about each
shard is already in. There is need to add shard name into each telemetry.
{code}
"facet-trace":{
"processor":"FacetQueryProcessor",
"elapse":0,
"query":null,
"domainSize":1100,
"sub-facet":[{
"processor":"FacetFieldProcessorUIF",
"elapse":0,
"field":"genre",
"limit":10,
"numBuckets":177,
"domainSize":557},
{
"processor":"FacetFieldProcessorUIF",
"elapse":0,
"field":"genre",
"limit":10,
"numBuckets":178,
"domainSize":543}]},
{code}
was (Author: michael.sun):
Without any change, Solr already merge facet telemetry from shards which is
pretty nice.
Request
{code}
curl http://localhost:8228/solr/films/select -d
'q=*:*&wt=json&indent=true&debugQuery=true&json.facet={
top_genre: {
type:terms,
field:genre,
numBuckets:true
}
}'
{code}
Facet Telemetry for collection with one shard.
{code}
"facet-trace":{
"processor":"FacetQueryProcessor",
"elapse":0,
"query":null,
"sub-facet":[{
"processor":"FacetFieldProcessorUIF",
"elapse":0,
"field":"genre",
"limit":10}]},
{code}
Facet telemetry for collection with two shards
{code}
"facet-trace":{
"processor":"FacetQueryProcessor",
"elapse":0,
"query":null,
"domainSize":1100,
"sub-facet":[{
"processor":"FacetFieldProcessorUIF",
"elapse":0,
"field":"genre",
"limit":10,
"numBuckets":177,
"domainSize":557},
{
"processor":"FacetFieldProcessorUIF",
"elapse":0,
"field":"genre",
"limit":10,
"numBuckets":178,
"domainSize":543}]},
{code}
> Merge facet telemetry information from shards
> ---------------------------------------------
>
> Key: SOLR-8444
> URL: https://issues.apache.org/jira/browse/SOLR-8444
> Project: Solr
> Issue Type: Sub-task
> Components: Facet Module
> Reporter: Michael Sun
> Fix For: Trunk
>
>
> This is to merge facet telemetry information from shards together. Here is
> the way to merge different fields in facet telemetry.
> 1. elapse: sum of elapse fields in shard telemetry
> 2. domainSize: sum
> 3. numBuckets: sum
> 4. other fields: skip in merging.
> In addition, the merged result contains a list of facet telemetry in each
> shard.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]