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 01D3A18E13 for ; Tue, 28 Jul 2015 08:26:45 +0000 (UTC) Received: (qmail 55094 invoked by uid 500); 28 Jul 2015 08:26:42 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 55037 invoked by uid 500); 28 Jul 2015 08:26:42 -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 55025 invoked by uid 99); 28 Jul 2015 08:26:42 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2015 08:26:42 +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 D71BCC08EB for ; Tue, 28 Jul 2015 08:26:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 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_H2=-1.108, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 0zYKbO_HOAF4 for ; Tue, 28 Jul 2015 08:26:41 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 7980E203A3 for ; Tue, 28 Jul 2015 08:26:40 +0000 (UTC) Received: by lbbyj8 with SMTP id yj8so69603816lbb.0 for ; Tue, 28 Jul 2015 01:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=FYwczFJ85fIf9NNFFEkYk/jTK4DC9kn7p57dBhIfKFQ=; b=OkFCb4WtTIC4o0DubfzkgZheDKLdsL8nzgCBq8EF4mJEiIm0+hK9ST0G3vlJ+gDh7H oiQXG5F2DRs7I5h8y0am98irAE7uik62ItKInOFA+LWg5LO+Xcsixs/iV7DNqzBIdIw/ fs/pvkRZ17orwykBhznJIfD0EU/aw4Kbchqyx9xxZtG7Q4nxvU6oVf44ybrEx8UWujOs pmRrElc7s5RZwS+xnM1bZUVu/s/o2vFNffQe20N0xqVLBdgbH1WN374wxlo8VG4aqj6A q9skbbjJE1fBhTZFkBHIcVaqmhZfXw6/P45zxHqMLzsx7w2QbNf2PTOCQAkkGbh3uLDy P5KQ== X-Received: by 10.112.170.167 with SMTP id an7mr31339427lbc.103.1438072000006; Tue, 28 Jul 2015 01:26:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.1.173 with HTTP; Tue, 28 Jul 2015 01:26:20 -0700 (PDT) From: Muhammad Ismail Date: Tue, 28 Jul 2015 13:26:20 +0500 Message-ID: Subject: Lucene [3.0] Skip Matching Document. To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11c368ccb8d29c051beb3aed --001a11c368ccb8d29c051beb3aed Content-Type: text/plain; charset=UTF-8 Can we skip matching lucene document by using custom collector or some other way. Like I want to bring all document created by user xxx on specific date but after we got a match, we want to run some logic which figure out either the document is acceptable or not. We cannot specify criteria in lucene query as we have to compare creation dates of documents. Like I have a index with book title & rating [in number], I want to find all books which have word "smart" in title also book with highest rating. Like 2 books having word "smart" in title but one has rating 5 & other has rating 12 then i want only 1 record i.e. book with rating 12 I am using Lucene 3.0 -- Thanks Muhammad Ismail --001a11c368ccb8d29c051beb3aed--