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 3C867200BD6 for ; Sun, 4 Dec 2016 10:05:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3B1D0160B18; Sun, 4 Dec 2016 09:05:00 +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 86720160AE4 for ; Sun, 4 Dec 2016 10:04:59 +0100 (CET) Received: (qmail 58792 invoked by uid 500); 4 Dec 2016 09:04:58 -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 58776 invoked by uid 99); 4 Dec 2016 09:04:57 -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; Sun, 04 Dec 2016 09:04:57 +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 68CD3C082E for ; Sun, 4 Dec 2016 09:04:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.148 X-Spam-Level: X-Spam-Status: No, score=0.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] 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 Qooc4FNf_Nd8 for ; Sun, 4 Dec 2016 09:04:56 +0000 (UTC) Received: from mail-wj0-f172.google.com (mail-wj0-f172.google.com [209.85.210.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 899725F19B for ; Sun, 4 Dec 2016 09:04:56 +0000 (UTC) Received: by mail-wj0-f172.google.com with SMTP id qp4so266097249wjc.3 for ; Sun, 04 Dec 2016 01:04:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=a4w8myjU+9dP1QX543cY432h211mQZI7qECMHvEJOW8=; b=ltf+gMdcjRTg79AV+QJ/favEIqqU0wG2df1hGGfqIjtM58JKOvtRyfwMGwWn1+bk/0 Iekr/jaR5VHzNlTiWUMPzEQAB6O8RXb6tBfhl/DCpcxw1JVQwKgsDLw/tTVbnRDufJo4 lzOPXskrKmFAPvWBfso6ZxxjcbUfLPpJEG26IoPOKbGGFV3Hx+2l6RCngtyGUQ6Flvwr ywawEiN2kyJDV+Dxw7TDNq11pV+zOGzEOCblhED3CSWgxhhv1bvs21tc4a3CB0Xt3xWj LRUI3os8xBN3YmXBKwkKq7mZ3BoFwQ+UtxrAmiYlgU5iPcrrxbvzAgh3uGaQvfSkSl3t Zmjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=a4w8myjU+9dP1QX543cY432h211mQZI7qECMHvEJOW8=; b=OQsffVYXLJfNBDHa/0RpnHN9KmtaPWMFb2qB1Btp8zIAyBrOL+CxCqxMjiSemjz0RT c3pQJJFQX8R8ukIamvYpFDYVzZsnRF/rxnsKgRilqCiUANq3kruNFVUyZQ/U46RXOWvT 3dn3jSiZlwJ9ms/LAXwGgnu4Oc1v9vOHnWKqYFLD7QrgCpEbgilVeJZnijbl/BjjefcA BeKRqLktFYDGini/+d8TsnZL6RhM4DVjhTApDZeBXBYDBLkIAE8kSebNkNCEGoD0krbA GHAwDQJScavv5HivFt0LEm2/W0bekve8rTujxOlNO02Mo62j+GLJkS+FonK5WdIvLMSs mGMA== X-Gm-Message-State: AKaTC01Gs3+0aZgvPsfaXhvAiR9lbxgHG1FE22bkjNa4w2ozdPwernF6y8xU6dMYnGbp/Vu7ZtEhywu4scDZag== X-Received: by 10.194.89.132 with SMTP id bo4mr20975994wjb.177.1480842295455; Sun, 04 Dec 2016 01:04:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.45.227 with HTTP; Sun, 4 Dec 2016 01:04:55 -0800 (PST) From: Hendrik Dev Date: Sun, 4 Dec 2016 10:04:55 +0100 Message-ID: Subject: Apply Lucene Query on Bits To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Sun, 04 Dec 2016 09:05:00 -0000 Hi, how to apply a org.apache.lucene.search.Query on a given org.apache.lucene.util.Bits object? Background: I have a subclass of org.apache.lucene.index.FilterLeafReader where i want to filter the livedocs by applying a query on the "Bits". According to javadoc i need also to override numDocs() if i override getLiveDocs(). So the question extends also to how to filter the number of documents based on a query (within a FilterLeafReader) Thx Hendrik -- Hendrik Saly (salyh, hendrikdev22) @hendrikdev22 PGP: 0x22D7F6EC --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org