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 7E2E7D901 for ; Tue, 16 Oct 2012 13:20:29 +0000 (UTC) Received: (qmail 85405 invoked by uid 500); 16 Oct 2012 13:20:27 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 85122 invoked by uid 500); 16 Oct 2012 13:20:21 -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 85082 invoked by uid 99); 16 Oct 2012 13:20:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 13:20:20 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xekoukou@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 13:20:14 +0000 Received: by mail-ob0-f176.google.com with SMTP id x4so7447819obh.35 for ; Tue, 16 Oct 2012 06:19:54 -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=YHhZHu++PcuG4zQBzK+HBSvurDdouHv+7w5bkNEGSOc=; b=G53IN6XZzEVPNvgByAPCSS7DArGhQc0Pn531wER00AxxBHxMG43ZcA48sPWxpV+BRn 3hj7TzrTDByU/5jzg/kxRa6ZncpbBp3/t3EtKe6tW1O6iKFwaFtzB9Y4rvEV3Yc8k0ih jMiFRMaj9N0Ngex2P5TGaxzEY0S9XHjw5AmekJWJOFYN5r/vQj3DTa6NxmVYmP61mids FC2KSO6sPrgrqnjtpnSTZumesEZq/zj00I37xYVg7gpdicth6a/+K/nYK66wHZUGvX6Q Rkjq+zq01jLRgqytsYpf/fyD/yqxoiMH6xM/k4PXGPcyTwW+CeOSdL1QIcrStRouiLIC 3s5g== MIME-Version: 1.0 Received: by 10.182.114.33 with SMTP id jd1mr10463350obb.81.1350393594123; Tue, 16 Oct 2012 06:19:54 -0700 (PDT) Received: by 10.60.171.171 with HTTP; Tue, 16 Oct 2012 06:19:54 -0700 (PDT) In-Reply-To: References: <1350376607967-4013905.post@n3.nabble.com> Date: Tue, 16 Oct 2012 16:19:54 +0300 Message-ID: Subject: Re: Restrict Lucene search in concrete document ids From: Apostolis Xekoukoulotakis To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=f46d044517bd7c16ac04cc2d0289 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044517bd7c16ac04cc2d0289 Content-Type: text/plain; charset=ISO-8859-1 How much time does it take to load a filter? If the filter needs to change for every query, that might be a problem. 2012/10/16 Erick Erickson > You probably want to use a Lucene Filter then use > one of the query methods that takes a filter. > > Best > Erick > > On Tue, Oct 16, 2012 at 4:36 AM, sxam wrote: > > Hi, > > Prior to search I have a concrete list of Lucene Document Ids (different > > every time) and I want to limit my search only to those specific > documents. > > Is there a way to do it? I don't need to check any fields or anything, I > > know the possible document ids before so if possible I wouldn't want to > use > > Query.. Besides it would be a huge query (let's say I want to limit to > 5,000 > > documents ids, it would be 5,000 Clauses..). > > > > Any help is greatly appreciated, > > > > Maxim > > > > > > > > -- > > View this message in context: > http://lucene.472066.n3.nabble.com/Restrict-Lucene-search-in-concrete-document-ids-tp4013905.html > > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > -- Sincerely yours, Apostolis Xekoukoulotakis --f46d044517bd7c16ac04cc2d0289--