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 2614B200C5A for ; Tue, 18 Apr 2017 15:46:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24A6E160BA1; Tue, 18 Apr 2017 13:46:59 +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 69D08160B90 for ; Tue, 18 Apr 2017 15:46:58 +0200 (CEST) Received: (qmail 41050 invoked by uid 500); 18 Apr 2017 13:46:56 -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 41038 invoked by uid 99); 18 Apr 2017 13:46:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2017 13:46:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3621418967B for ; Tue, 18 Apr 2017 13:46:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, 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] autolearn=disabled Authentication-Results: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Ud-D53amNXuK for ; Tue, 18 Apr 2017 13:46:55 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A932360DB8 for ; Tue, 18 Apr 2017 13:46:54 +0000 (UTC) Received: by mail-qk0-f177.google.com with SMTP id p68so130193896qke.1 for ; Tue, 18 Apr 2017 06:46:54 -0700 (PDT) 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=noBMWomQ505kvXi5fhXeySSiwQMpkvCtOdbgWhQfG/c=; b=Nk3YgbQnVFeIjEVlVZy9oHzT4/X4SIK/H+GwWRmAZGhEQDGoFzSmagUs11+8SVy4F3 xk8zUTde51Yn3kBkrN818ggq5OxCjenWzeNv0Qs5antSqZX9nD/jOdU0UQSgL5H2gj9X D5Ks1gMEjyNUdK+c/m5Q0kbOEcGrM6YlC3WQLTYiOCfki3r9g+DShz3AqYK/gHZDtr/c cRj627sZsXBFfPxD89eEi+8D1HOGcaHME72p0kHB53J2UiAEOHJqFe0D1O5j3DxAp974 QgZbbZ6IcRcq9oxoIstE1z3PWjK1HQHpa/xanoU9I7Hel6xmzuwp82Cpf/lmVweBt7Ds 94gA== 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=noBMWomQ505kvXi5fhXeySSiwQMpkvCtOdbgWhQfG/c=; b=sjd2Kcktlv7UTLN+qVGwkUrhTQML+xrVE3GFWQHgwLYvg9cjktWLFfmRtfNkx0+LNg aw8i042SkcQnQUcCpY4+OWVkfvqH/AvTJXlkIsL+TcF49DK6YJhb7Ib46QwAmULhesxr nt/E0REp94KU04A1s7u2VNfloUwDsPZaaoW8F2N0V5XTILgZ8HGm9Omdk7gxkiK+Hd8b vNSkR2We2Pe0H/U5uxbbBe+rl133Bwhl420w3EFPr6z4zLKkKsJzMgYEbcUdgxhUGy8v GLhIz40ODuqe/AeOlsV5lvlAI1MWAGu3YP9AAFpko/oWN2g8XXwxO9kakmXyJo/yy8OL 4J5A== X-Gm-Message-State: AN3rC/7TFenWeXfi2opGS0R20h31EkWvyMrMMr6lSiAGSwEZHGj8elCT S6huHi1GOP+B+ScfVmnA50DZMA8dKg== X-Received: by 10.55.115.67 with SMTP id o64mr12873056qkc.216.1492523208210; Tue, 18 Apr 2017 06:46:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.42.210 with HTTP; Tue, 18 Apr 2017 06:46:47 -0700 (PDT) In-Reply-To: References: <67C59E5B-9CFD-4E9B-BAD9-9C664FF3E0DA@gmail.com> From: Furkan KAMACI Date: Tue, 18 Apr 2017 16:46:47 +0300 Message-ID: Subject: Re: Filter Facet Query To: "solr-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=001a114ff3b6a502d8054d712389 archived-at: Tue, 18 Apr 2017 13:46:59 -0000 --001a114ff3b6a502d8054d712389 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Alex, I found the reason, thanks for the help. Facet shows all possible values including 0. Could you help on my last question: I have facet results like: "", 9 "research",6 "development",3 I want to filter empty string from my facet "" (I don't want to add it to fq, just filter from facets). How can I do that? On Tue, Apr 18, 2017 at 11:52 AM, Alexandre Rafalovitch wrote: > Are you saying that all the values in the facet are zero with that > query? The query you gave seems to be the super-basic faceting code, > so maybe something super-basic is missing. > > E.g. > *) Did you check that the documents you get back actually have any > values in that field to facet on? > *) Did you try making a query just by ID for a document that > definitely has the value in that field? > *) Did you do the query with echoParams=3Dall to see that you are not > having any hidden extra parameters that get appended? > > Regards, > Alex. > > ---- > http://www.solr-start.com/ - Resources for Solr users, new and experience= d > > > On 18 April 2017 at 11:43, Furkan KAMACI wrote: > > OK, it returns 0 results every time. > > > > So, > > > > I want to filter out research values with empty string ("") from facet > > result. How can I do that? > > > > > > On Tue, Apr 18, 2017 at 8:53 AM, Furkan KAMACI > > wrote: > > > >> First problem is they do not match with main query. > >> > >> 18 Nis 2017 Sal, saat 01:54 tarihinde Dave < > hastings.recursive@gmail.com> > >> =C5=9Funu yazd=C4=B1: > >> > >>> Min.count is what you're looking for to get non 0 facets > >>> > >>> > On Apr 17, 2017, at 6:51 PM, Furkan KAMACI > >>> wrote: > >>> > > >>> > My query: > >>> > > >>> > /select?facet.field=3Dresearch&facet=3Don&q=3Dcontent:test > >>> > > >>> > Q1) Facet returns research values with 0 counts which has a researc= h > >>> value > >>> > that is not from a document matched by main query (content:test). I= s > >>> that > >>> > usual? > >>> > > >>> > Q2) I want to filter out research values with empty string ("") fro= m > >>> facet > >>> > result. How can I do that? > >>> > > >>> > Kind Regards, > >>> > Furkan KAMACI > >>> > >> > --001a114ff3b6a502d8054d712389--