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 34712200C0E for ; Wed, 1 Feb 2017 13:57:38 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 32CC3160B44; Wed, 1 Feb 2017 12:57:38 +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 7C781160B43 for ; Wed, 1 Feb 2017 13:57:37 +0100 (CET) Received: (qmail 16695 invoked by uid 500); 1 Feb 2017 12:57:29 -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 16684 invoked by uid 99); 1 Feb 2017 12:57:29 -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; Wed, 01 Feb 2017 12:57:29 +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 20F8E185DBB for ; Wed, 1 Feb 2017 12:57:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-2.999] autolearn=disabled 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 5QKDq2HpEIbd for ; Wed, 1 Feb 2017 12:57:28 +0000 (UTC) Received: from berula.man.poznan.pl (berula.man.poznan.pl [150.254.173.11]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 999325F177 for ; Wed, 1 Feb 2017 12:57:27 +0000 (UTC) X-Virus-Scanned: by PSNC antivirus scanner at man.poznan.pl Received: from [192.168.29.245] (pimpstar-int13.man.poznan.pl [150.254.169.102]) (authenticated bits=0) by berula.man.poznan.pl (8.15.2/8.15.2/MSA) with ESMTPSA id v11CvA6n005270 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 1 Feb 2017 13:57:12 +0100 (CET) Subject: Re: Query structure To: solr-user@lucene.apache.org References: <1065925039.101797524.1485883873801.JavaMail.zimbra@comcast.net> <1217830521.102209178.1485953022687.JavaMail.zimbra@comcast.net> From: "=?UTF-8?Q?Maciej_=c5=81._PCSS?=" Message-ID: Date: Wed, 1 Feb 2017 13:57:05 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1217830521.102209178.1485953022687.JavaMail.zimbra@comcast.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Wed, 01 Feb 2017 12:57:38 -0000 You should be able to put 'facetMetatagDatePrefix4:2015 OR facetMetatagDatePrefix4:2016' into the filtering query. Maciej W dniu 01.02.2017 o 13:43, KRIS MUSSHORN pisze: > I really need some guidance on this query structure issue. > > I've got to get this solved today for my employer. > > "Help me Obiwan. Your my only hope" > > K > > ----- Original Message ----- > > From: "KRIS MUSSHORN" > To: solr-user@lucene.apache.org > Sent: Tuesday, January 31, 2017 12:31:13 PM > Subject: Query structure > > I have a defaultSearchField and facetMetatagDatePrefix4 fields that are correctly populated with values in SOLR 5.4.1. > > if execute this query q=defaultSearchField:this text > I get the 7 docs that match. > Their are three docs in 2015 and one doc in 2016 per the facet counts in the results. > If I then q=defaultSearchField:this text AND facetMetatagDatePrefix4:2015 i get the correct 3 documents. > > How would I structure my query to get defaultSearchField:this text AND (facetMetatagDatePrefix4:2015 OR facetMetatagDatePrefix4:2016) and return only 4 docs? > > TIA, > Kris > > >