Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 35416 invoked from network); 27 Apr 2009 17:12:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Apr 2009 17:12:54 -0000 Received: (qmail 11576 invoked by uid 500); 27 Apr 2009 17:12:54 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 11500 invoked by uid 500); 27 Apr 2009 17:12:53 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 11387 invoked by uid 99); 27 Apr 2009 17:12:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2009 17:12:53 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2009 17:12:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EA06B234C4B0 for ; Mon, 27 Apr 2009 10:12:31 -0700 (PDT) Message-ID: <904279485.1240852351957.JavaMail.jira@brutus> Date: Mon, 27 Apr 2009 10:12:31 -0700 (PDT) From: "Koji Sekiguchi (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Issue Comment Edited: (SOLR-64) strict hierarchical facets In-Reply-To: <17179960.1162490596489.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703221#action_12703221 ] Koji Sekiguchi edited comment on SOLR-64 at 4/27/09 10:12 AM: -------------------------------------------------------------- First draft, need more test. This version doesn't support distributed environment. - schema setup {code:xml|title=schema.xml} {code} - sample data {code:xml|title=sample data} 1 A/B/E/ B/B/D/E/ 2 A/B/E/ 3 A/B/F/ 4 A/C/G/ 5 A/C/G/ 6 A/C/G/ 7 A/D/ 8 A/ 9 B/B/C/ {code} - usage: http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json {code:title=&facet=on&facet.field=hiefacet} "facet_counts":{ "facet_queries":{}, "facet_fields":{ "hiefacet":[ "sub_facets",[ "A",8, "path-A","A/", "sub_facets",[ "B",3, "path-B","A/B/", "sub_facets",[ "E",2, "path-E","A/B/E/", "F",1, "path-F","A/B/F/"], "C",3, "path-C","A/C/", "sub_facets",[ "G",3, "path-G","A/C/G/"], "D",1, "path-D","A/D/"], "B",2, "path-B","B/", "sub_facets",[ "B",2, "path-B","B/B/", "sub_facets",[ "C",1, "path-C","B/B/C/", "D",1, "path-D","B/B/D/", "sub_facets",[ "E",1, "path-E","B/B/D/E/"]]]]]}, "facet_dates":{}} {code} - usage: facet.depth http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&facet.depth=2&wt=json {code:title=&facet.field=hiefacet&facet.depth=2} "facet_counts":{ "facet_queries":{}, "facet_fields":{ "hiefacet":[ "sub_facets",[ "A",8, "path-A","A/", "sub_facets",[ "B",3, "path-B","A/B/", "C",3, "path-C","A/C/", "D",1, "path-D","A/D/"], "B",2, "path-B","B/", "sub_facets",[ "B",2, "path-B","B/B/"]]]}, "facet_dates":{}} {code} - usage: facet.prefix http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json&facet.prefix=A%2FB%2F {code:title=&facet=on&facet.field=hiefacet&facet.prefix=A/B/} "facet_counts":{ "facet_queries":{}, "facet_fields":{ "hiefacet":[ "sub_facets",[ "B",3, "path-B","A/B/", "sub_facets",[ "E",2, "path-E","A/B/E/", "F",1, "path-F","A/B/F/"]]]}, "facet_dates":{}} {code} was (Author: koji): First draft, need more test. This version doesn't support distributed environment. - schema setup {code:xml|title=schema.xml} {code} - sample data {code:xml|title=sample data} 1 A/B/E/ B/B/D/E/ 2 A/B/E/ 3 A/B/F/ 4 A/C/G/ 5 A/C/G/ 6 A/C/G/ 7 A/D/ 8 A/ 9 B/B/C/ {code} - usage: http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json {code:json} "facet_counts":{ "facet_queries":{}, "facet_fields":{ "hiefacet":[ "sub_facets",[ "A",8, "path-A","A/", "sub_facets",[ "B",3, "path-B","A/B/", "sub_facets",[ "E",2, "path-E","A/B/E/", "F",1, "path-F","A/B/F/"], "C",3, "path-C","A/C/", "sub_facets",[ "G",3, "path-G","A/C/G/"], "D",1, "path-D","A/D/"], "B",2, "path-B","B/", "sub_facets",[ "B",2, "path-B","B/B/", "sub_facets",[ "C",1, "path-C","B/B/C/", "D",1, "path-D","B/B/D/", "sub_facets",[ "E",1, "path-E","B/B/D/E/"]]]]]}, "facet_dates":{}} {code} - usage: facet.depth http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&facet.depth=2&wt=json {code:json} "facet_counts":{ "facet_queries":{}, "facet_fields":{ "hiefacet":[ "sub_facets",[ "A",8, "path-A","A/", "sub_facets",[ "B",3, "path-B","A/B/", "C",3, "path-C","A/C/", "D",1, "path-D","A/D/"], "B",2, "path-B","B/", "sub_facets",[ "B",2, "path-B","B/B/"]]]}, "facet_dates":{}} {code} - usage: facet.prefix http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on&facet=on&facet.field=hiefacet&wt=json&facet.prefix=A%2FB%2F {code:json} "facet_counts":{ "facet_queries":{}, "facet_fields":{ "hiefacet":[ "sub_facets",[ "B",3, "path-B","A/B/", "sub_facets",[ "E",2, "path-E","A/B/E/", "F",1, "path-F","A/B/F/"]]]}, "facet_dates":{}} {code} > strict hierarchical facets > -------------------------- > > Key: SOLR-64 > URL: https://issues.apache.org/jira/browse/SOLR-64 > Project: Solr > Issue Type: New Feature > Components: search > Reporter: Yonik Seeley > Fix For: 1.5 > > Attachments: SOLR-64.patch > > > Strict Facet Hierarchies... each tag has at most one parent (a tree). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.