Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0810717ECC for ; Fri, 17 Apr 2015 16:20:59 +0000 (UTC) Received: (qmail 84209 invoked by uid 500); 17 Apr 2015 16:20:55 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 84143 invoked by uid 500); 17 Apr 2015 16:20:55 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 84130 invoked by uid 99); 17 Apr 2015 16:20:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 16:20:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yseeley@gmail.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-ig0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 16:20:50 +0000 Received: by igblo3 with SMTP id lo3so16225596igb.0 for ; Fri, 17 Apr 2015 09:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ku/THm13HwAzLXhKDDgjNxTNVxXcpvkxVwMlVqgOZdY=; b=pFdHulvR0AI9pvUdfWHyF7lzT7kyXVTJKOxhRgMeNeDVcoawosVog26FIcacgSyG0B mYoHzGc+WI3wZaiwd4ImK8VhDDJ2RBiraIHf8iSnyNtzY+O6uU+Od9Urm8kHv6Kt6nyf UbaXugglXJobzfuyEidWSyS4KLWHxkQRlIdT3+p/gqirpZklzXFh+FXPiGNjeTEnHisQ 1yXUjIsB6LaozMwFsIUoXdUWxtRnKCw+FEPqxW78XJs52QO6WJ09JF6/jZ0NimIvwqug t5d/fMZveJfw4L5eILomhHnXcXVKNHgZqiRqxXW2SUZaYXyO8RcKDaiFG4ZaVA2HC6MJ H1xw== MIME-Version: 1.0 X-Received: by 10.107.138.96 with SMTP id m93mr4999469iod.14.1429287630396; Fri, 17 Apr 2015 09:20:30 -0700 (PDT) Received: by 10.36.28.17 with HTTP; Fri, 17 Apr 2015 09:20:30 -0700 (PDT) In-Reply-To: References: Date: Fri, 17 Apr 2015 12:20:30 -0400 Message-ID: Subject: Re: JSON Facet & Analytics API in Solr 5.1 From: Yonik Seeley To: "solr-user@lucene.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Does anyone have any thoughts on the current general structure of JSON facets? The current general form of a facet command is: : { : } For example: top_authors : { terms : { field : author, limit : 5, }} One alternative I considered in the past is having the type in the args: top_authors : { type : terms, field : author, limit : 5 } It's a flatter structure... probably better in some ways, but worse in other ways. Thoughts / preferences? -Yonik On Tue, Apr 14, 2015 at 4:30 PM, Yonik Seeley wrote: > Folks, there's a new JSON Facet API in the just released Solr 5.1 > (actually, a new facet module under the covers too). > > It's marked as experimental so we have time to change the API based on > your feedback. So let us know what you like, what you would change, > what's missing, or any other ideas you may have! > > I've just started the documentation for the reference guide (on our > confluence wiki), so for now the best doc is on my blog: > > http://yonik.com/json-facet-api/ > http://yonik.com/solr-facet-functions/ > http://yonik.com/solr-subfacets/ > > I'll also be hanging out more on the #solr-dev IRC channel on freenode > if you want to hit me up there about any development ideas. > > -Yonik