Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DBA6B200C0F for ; Thu, 2 Feb 2017 21:30:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D9D74160B57; Thu, 2 Feb 2017 20:30:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2D49E160B44 for ; Thu, 2 Feb 2017 21:30:47 +0100 (CET) Received: (qmail 6163 invoked by uid 500); 2 Feb 2017 20:30:45 -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 6151 invoked by uid 99); 2 Feb 2017 20:30:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2017 20:30:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 535B9C12DB for ; Thu, 2 Feb 2017 20:30:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.692 X-Spam-Level: **** X-Spam-Status: No, score=4.692 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LIVE=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id goXY3d2pbSwx for ; Thu, 2 Feb 2017 20:30:43 +0000 (UTC) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.161.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 259505F30B for ; Thu, 2 Feb 2017 20:30:43 +0000 (UTC) Received: by mail-yw0-f178.google.com with SMTP id w75so22901122ywg.1 for ; Thu, 02 Feb 2017 12:30:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=NDtvKbdEa8CZ3qleSKltgeLgH4BrxW3KIDsNRG1QbzE=; b=RVauEmdNfCc/vSab6TIjFIOixf2hgvFCy7O8vHl9A9cUHaYGpJD2DJ9Q+7RhawsS+F zXC/sMvGiuDCMzMs4hetgTZA+bWpfPGROcMA4RpQPcpYlMVkSXVt1MpYwWuQHTmY/GXb 69RxrSSJjTOJqTbwBpqsgk5am+H9VFotqM9C0gHxqoW4PnuFwK0Ah00fpaw3bav3O+Jf jSvAfQyIMw5A3Mr9O4IDZD9jhuDboMTgwsVPTaPIMOGMW4rBif4LxLDF/ZfNVxJnjKu4 jVa7GmeEGj5QEhvMUsyScJg2EDXWI9Pa7hYkSRA7xkwrpR6IgChNNPkRk8ZtTQgBqwvN yxLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=NDtvKbdEa8CZ3qleSKltgeLgH4BrxW3KIDsNRG1QbzE=; b=BKfwEJs33EO7LtbaPCWkYufXFqXImzisly9eriIAhpWvs1+SnqVzsybkfIZK6HZGZM 7zNr4OxuyuDzk93FSc8Yvl2G7k7Ki83eaijAJm6JZKtwyR5wMxmTHJj8e5uSSUIDkky4 3q6pWG4w0Dr4zcroZuJAv0YaeH9gv6Y0Eq8wCLOReVnLMB6v6+lyV4BzS+sjKXEHKVZ7 Z8PInRPsclilW5ef8JsfJX9/5VxRkVjeJiBP9E8QOM1g9ipbEi1ck3CCc3JxC+2RFEXk 0D7pe4bwp9FDu61qjhooE+NVRL6t0oi0ZJkomqR3b5PZGh9rVcUbVE3yaxFhm2Ig2uqb /Ksg== X-Gm-Message-State: AIkVDXLeVCMNZuTDzqg/P1m8ZNmcrFiE+re2CZDeNwRvCGbaWjUN1MZO/00+doWvcCasiby3eTcMdZpTzEhvQw== X-Received: by 10.129.84.68 with SMTP id i65mr6973728ywb.38.1486067442546; Thu, 02 Feb 2017 12:30:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.118.15 with HTTP; Thu, 2 Feb 2017 12:30:42 -0800 (PST) In-Reply-To: <1486047071319-4318477.post@n3.nabble.com> References: <1486047071319-4318477.post@n3.nabble.com> From: Joel Bernstein Date: Thu, 2 Feb 2017 15:30:42 -0500 Message-ID: Subject: Re: Solr 6 Facet range query over streaming API To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a114d6fca067fcc0547920a46 archived-at: Thu, 02 Feb 2017 20:30:48 -0000 --001a114d6fca067fcc0547920a46 Content-Type: text/plain; charset=UTF-8 Currently you would have to supply some custom Streaming Expressions to do the kind of range faceting you are doing above. There are two aggregation Streaming Expressions currently: rollup: Does a MapReduce rollup over buckets. This means all tuples matching a query are sorted and partitioned across worker nodes and then rolled up. This is good for exact facet counts on very high cardinality fields. But it is much slower then traditional faceting on low and moderate cardinality fields. facet: Pushes the aggregations down into Solr using the JSON facet API. Both of these currently support simple aggregations over buckets, but not the kind of automatic date range faceting you're currently using. Aggregations are going to be getting more attention in Streaming Expressions soon, to support additional functionality Parallel SQL. Joel Bernstein http://joelsolr.blogspot.com/ On Thu, Feb 2, 2017 at 9:51 AM, yauza wrote: > While migrating from Solr legacy faceting to Solr streaming API, how to > implement the below parameters: > > &facet = true > &facet.range = {!key=age_ranges}age > &f.age.facet.range.start = 0 > &f.age.facet.range.end = 100 > &f.age.facet.range.gap = 10 > &facet.range = {!key=price_ranges}price > &f.price.facet.range.start = 0 > &f.price.facet.range.end = 1000 > &f.price.facet.range.gap = 50 > &facet.field = a_field > &facet.minCount = 1 > > > How can I implement these parameters using the new facet streaming with > parallel functions. I understand rollup() functionality has to be used.But > the documentation is limited and I am not able to understand the underlying > functionality. Can someone help me with this? > > Ref Sample Query being currently used: > > q=(score:[*+TO+*])+AND+(field:378/content)+AND+(crawl_date:[ > 2015-01-01T18:30:00.000Z+TO+2017-02-01T18:30:00.000Z]) > &facet.range=score&facet.range=project_score&facet. > range=publish_date&f.score.facet.range.start=0 > &f.score.facet.range.end=1000&f.score.facet.range.gap=10& > facet=true&f.project_score.facet.range.start=0.0 > &f.project_score.facet.range.end=1.0&f.project_score.facet. > range.gap=0.01&f.publish_date.facet.range.start=1970-01-01T00:00:00Z > &f.publish_date.facet.range.end=2017-02-01T14:09:26.763Z& > f.publish_date.facet.range.gap=%2B1MONTH&rows=0&facet.field=project_score > &facet.field={!key%3D378+facet.prefix%3D378/content} > field&facet.field=Tags&facet.field=patent_publication > &facet.field=score&facet.limit=1000&facet.mincount=1 > > > > > -- > View this message in context: http://lucene.472066.n3. > nabble.com/Solr-6-Facet-range-query-over-streaming-API-tp4318477.html > Sent from the Solr - User mailing list archive at Nabble.com. > --001a114d6fca067fcc0547920a46--