Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 926E0185E1 for ; Fri, 24 Jul 2015 20:47:00 +0000 (UTC) Received: (qmail 63680 invoked by uid 500); 24 Jul 2015 20:46:52 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 63610 invoked by uid 500); 24 Jul 2015 20:46:52 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 63597 invoked by uid 99); 24 Jul 2015 20:46:51 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2015 20:46:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 85A561A7889 for ; Fri, 24 Jul 2015 20:46:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ocQf0-KFJraT for ; Fri, 24 Jul 2015 20:46:50 +0000 (UTC) Received: from mail-ig0-f177.google.com (mail-ig0-f177.google.com [209.85.213.177]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 5450520F46 for ; Fri, 24 Jul 2015 20:46:50 +0000 (UTC) Received: by iggf3 with SMTP id f3so25796641igg.1 for ; Fri, 24 Jul 2015 13:46:04 -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=RCJ7HwZro8ikR2wD23fubNbAJysPSgisunvkN8eSOIM=; b=Pprj+PrEgWauMIiVGKNAjML8cZzB0uPeqCJcp5kAfpT6Hos3yzQrjC1A7HafKa7NHX vd32IDSeZT9Dcem6hHLF6qQ5unRx10M1T640AXkkNmY0icrotYlgE5lPDcRVpHtRRxIp D46nNwIMwhWP7USkVwmHQUkgFU7wkTQyspps0oSMSsnv7PUGeQpPpOWCxx+M63bhWw1X 7ZH9lCSrwI+A7ydsRgMFdwmg2QChSidoIFHoK8XE6d5juxaWI0VaSCUQDmaHj8/FFnHR jzmFivFNqLedBaMuGDT16g3FgS0D78xukubVMWEtSAQg4a/JxOOcSjn/ITgkbGJRCf/1 2mLA== MIME-Version: 1.0 X-Received: by 10.50.143.104 with SMTP id sd8mr254054igb.34.1437770764768; Fri, 24 Jul 2015 13:46:04 -0700 (PDT) Received: by 10.36.252.196 with HTTP; Fri, 24 Jul 2015 13:46:04 -0700 (PDT) In-Reply-To: References: Date: Fri, 24 Jul 2015 16:46:04 -0400 Message-ID: Subject: Re: drilldown query with null base query From: Sheng To: "java-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=001a1135f1a6b3dc75051ba51790 --001a1135f1a6b3dc75051ba51790 Content-Type: text/plain; charset=UTF-8 found out even more - if I mix up the negative path (boolean filter with MUST_NOT) and normal path in drilldownpath, it does not work with base query = MatchAllDocsQuery(). _However_, if I instead use a term query as the base query, while everything else stays the same, the drilldown does work. On Fri, Jul 24, 2015 at 2:06 PM, Sheng wrote: > Just found out more, drill down query will MatchAllDocsQuery as base query > will work if only one path is added, and starts to return empty results if > more than 1 path are added. This is very strange... > > > > On Fri, Jul 24, 2015 at 12:12 PM, Sheng wrote: > >> This is what I am going to achieve - running a drill down query with >> baseQuery = null / MatchAllDocsQuery(), and expecting the index returning >> all the documents that matches the drill down path(s). So it returns >> nothing back to me, however as long as I make the basequery to search a >> specific term instead of null / MatchAllDocsQuery(), it returns correct >> results back to me. >> >> I read the src code of DrillDownQuery, it says "using null / >> MatchAllDocsQuery() as base query is equal to a pure browsing query". I was >> assuming it should work with a particular set of drill down paths too, but >> it does not seem to be so. >> >> BTW - I am using Lucene 4.10.2 >> > > --001a1135f1a6b3dc75051ba51790--