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 610781826F for ; Mon, 14 Dec 2015 19:41:48 +0000 (UTC) Received: (qmail 4943 invoked by uid 500); 14 Dec 2015 19:41:47 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 4888 invoked by uid 500); 14 Dec 2015 19:41:46 -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 4811 invoked by uid 99); 14 Dec 2015 19:41:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2015 19:41:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AFAFF2C1F6F for ; Mon, 14 Dec 2015 19:41:46 +0000 (UTC) Date: Mon, 14 Dec 2015 19:41:46 +0000 (UTC) From: "Michael Sun (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SOLR-8230) Create Facet Telemetry for Nested Facet Query 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-8230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Sun updated SOLR-8230: ------------------------------ Attachment: SOLR-8230.patch > Create Facet Telemetry for Nested Facet Query > --------------------------------------------- > > Key: SOLR-8230 > URL: https://issues.apache.org/jira/browse/SOLR-8230 > Project: Solr > Issue Type: Sub-task > Components: Facet Module > Reporter: Michael Sun > Fix For: Trunk > > Attachments: SOLR-8230.patch, SOLR-8230.patch, SOLR-8230.patch, SOLR-8230.patch > > > This is the first step for SOLR-8228 Facet Telemetry. It's going to implement the telemetry for a nested facet query and put the information obtained in debug field in response. > Here is an example of telemetry returned from query. > Query > {code} > curl http://localhost:8228/solr/films/select -d 'q=*:*&wt=json&indent=true&debugQuery=true&json.facet={ > top_genre: { > type:terms, > field:genre, > numBucket:true, > limit:2, > facet: { > top_director: { > type:terms, > field:directed_by, > numBuckets:true, > limit:2 > }, > first_release: { > type:terms, > field:initial_release_date, > sort:{index:asc}, > numBuckets:true, > limit:2 > } > } > } > }' > {code} > Telemetry returned (inside debug part) > {code} > "facet-trace":{ > "processor":"FacetQueryProcessor", > "elapse":1, > "query":null, > "sub-facet":[{ > "processor":"FacetFieldProcessorUIF", > "elapse":1, > "field":"genre", > "limit":2, > "sub-facet":[{ > "filter":"genre:Drama", > "processor":"FacetFieldProcessorUIF", > "elapse":0, > "field":"directed_by", > "limit":2}, > { > "filter":"genre:Drama", > "processor":"FacetFieldProcessorNumeric", > "elapse":0, > "field":"initial_release_date", > "limit":2}, > { > "filter":"genre:Comedy", > "processor":"FacetFieldProcessorUIF", > "elapse":0, > "field":"directed_by", > "limit":2}, > { > "filter":"genre:Comedy", > "processor":"FacetFieldProcessorNumeric", > "elapse":0, > "field":"initial_release_date", > "limit":2}]}]}, > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org