From java-user-return-63886-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed Jul 25 18:47:33 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2038018062C for ; Wed, 25 Jul 2018 18:47:32 +0200 (CEST) Received: (qmail 16454 invoked by uid 500); 25 Jul 2018 16:47:31 -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 16432 invoked by uid 99); 25 Jul 2018 16:47:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2018 16:47:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 97E82C1AB0 for ; Wed, 25 Jul 2018 16:47:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 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, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=detectum.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id A7ZrJTzKihHi for ; Wed, 25 Jul 2018 16:47:29 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CBD8B5F4AA for ; Wed, 25 Jul 2018 12:43:24 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id 13-v6so13612416ois.1 for ; Wed, 25 Jul 2018 05:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=detectum.com; s=mail; h=mime-version:from:date:message-id:subject:to; bh=X6m3aBlKKfZ/SuU6QtqdfQJqnckz2uXDy+jh3iVOxhc=; b=Lh4szO2Jxw3I1ZiCAAUlDi7WEOoFZs4gXv4HuYICBhdAyKdKrw906wLmdYQyygWSzX JJmY0Hrq6ERn9kJJ5sdtG6y/4LS7mcMKaMGOFCIcakuI8oiZKaq46fDX1SqI95HAatNf uFC5v+PQeI1ndPyEzzMYDRJ2XYO7bFsIpLdOw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=X6m3aBlKKfZ/SuU6QtqdfQJqnckz2uXDy+jh3iVOxhc=; b=a1nqlU3+K6QoIZ17lvdGOzv0BX6OfNtYWYIuIdd1Xx8Ygt36h5VRS8XOyW8+GINuHr QlZHiaEoZDNIWiMrYaEToXizMxD03YkbkA6EZckO5IC6gq9zqHROtxSyGkNoCsgCCV5s HvBTlKOFoWWKgKLOi9CkEvcqhCmSok8cgzZ5DSdu5ntDtVzrbB+Rks4gScIXf09koYvJ 95w00S4y7ImjCJINtEuoG9nLfHx0aVaMVTXW6Ynb1OV6UlDOkamoVR5mkvZRB653WQH1 PB1Pqt+FyBJ0YQ+XJke82DzWLYwOJoHgZ61PmmaRXzEOSQ29ibWlYvbNYZ+K3/t6zMvt iUng== X-Gm-Message-State: AOUpUlGgDkeujoOlX8KMkHJltKW2EOCvOj76+z3+BUHy3dvnZn0HnjIO twiv/F0CFulntG4cBTydrxcjVgBq1D0EhPBTurBp4ujOm/y6YQ== X-Google-Smtp-Source: AAOMgpfqfhIA+I+z3l4mZ6Dgzz9p6UteZyMdrYEicpcUtpc8u7vD2XkvlmYfnIOwXCH52+93E/9+4sSO5Gp63vetJPw= X-Received: by 2002:aca:cc46:: with SMTP id c67-v6mr3394682oig.197.1532522603434; Wed, 25 Jul 2018 05:43:23 -0700 (PDT) MIME-Version: 1.0 From: Vadim Gindin Date: Wed, 25 Jul 2018 17:43:13 +0500 Message-ID: Subject: CustomQuery.bulkScorer isn't called from BooleanQuery with filter block To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary="0000000000006368870571d2399a" --0000000000006368870571d2399a Content-Type: text/plain; charset="UTF-8" Hi all! I have the following BooleanQuery (JSON representation as it is defined in Elasticsearch): { "query" : { "bool" : { "must" : { "custom_query" : { // has own bulkScorer() implementation ... } }, "filter" : { ... } } } } Here "custom_query" is a custom query I defined with custom Weight and custom bulkScorer() method. 1. This method isn't called if BooleanQuery contains Filter clause near CustomQuery. 2. This method is called if BooleanQuery contains only one clause with CustomQuery. Why? I need my CustomQuery.CustomWieght.bulkScorer() working. P.S. As I understand 2 clauses are "required" clauses. CustomQuery having bulkScorer() doesn't know about Filter, and Filter doesn't know about CustomQuery, but it seems they should work together. And that is why bulkScorer isn't called. Is there a way to integrate CustomQuery.bulkScorer() with possible adjacent filters? Regards, Vadim Gindin --0000000000006368870571d2399a--