Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 92711 invoked from network); 26 Nov 2010 15:04:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 15:04:15 -0000 Received: (qmail 90204 invoked by uid 500); 26 Nov 2010 15:04:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 90042 invoked by uid 500); 26 Nov 2010 15:04:12 -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 90034 invoked by uid 99); 26 Nov 2010 15:04:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 15:04:11 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aminmc@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 15:04:02 +0000 Received: by wyf28 with SMTP id 28so2232851wyf.35 for ; Fri, 26 Nov 2010 07:03:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=sm4a9HrdmIpCxXmMaBIJ+wlDNgeKnTNlr+Bi5xpRr+0=; b=FywbOx3O2IIkngS7EsEZOgTYexmbHnY+HZv39U3fPWqRSqp5e1UfBazXglgpiqo1DJ NrrWdp/v645lYtXnKZnwkAb3PrHHcm+2DNK0K++QAayeLT5xai2GHTW5gGd2WgOFHMaS nfG81iEG8gPg13mqoM8WjDpLcS8RpHhtYtmNg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=Id+tf+Khx1hgqt1Q9oOQzCiKLIeJHlFMy+CpJZmo98siUx2P90ZFT9pcgeA+89w7uU CY46bBm93ISiWCGECSEeOnE2iPG6Ono+kkGNn6rgm4UjhBQJyWPTT2oXFE9xGV/fMVRJ r5NTccg6fklsOYXF+V0sPAsFyYr8d94QQKjOs= Received: by 10.227.39.210 with SMTP id h18mr2508244wbe.75.1290783822126; Fri, 26 Nov 2010 07:03:42 -0800 (PST) Received: from [192.168.1.90] (host86-156-93-172.range86-156.btcentralplus.com [86.156.93.172]) by mx.google.com with ESMTPS id b30sm1382321wbb.10.2010.11.26.07.03.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Nov 2010 07:03:41 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: TermRangeQuery From: Amin Mohammed-Coleman In-Reply-To: Date: Fri, 26 Nov 2010 15:03:39 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <92FDD0C2-6BEA-4CAD-A2FD-B5DDD7A43A78@gmail.com> References: <50D99037-BFBE-4470-AD0B-40EF661530D9@gmail.com> To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.1082) X-Virus-Checked: Checked by ClamAV on apache.org Hi Basically test my ids look like: AAA-231 AAD-234 ADD-123 Didn't now about the collator, i was going to do a custom sort based on = the number part of the id. Thanks Amin On 26 Nov 2010, at 14:39, Ian Lea wrote: > Absolutely, as long as your ids will sort as you expect. >=20 > I'm not clear what you mean by XDF-123 but if you've got >=20 > AAA-123 > AAA-124 > ... > ABC-123 > ABC-234 > etc. >=20 > then you'll be fine. If they don't sort so neatly you can use the > TermRangeQuery constructor that takes a Collator but note the > performance warning in the javadocs. >=20 >=20 > -- > Ian. >=20 >=20 > On Fri, Nov 26, 2010 at 2:18 PM, Amin Mohammed-Coleman = wrote: >> Hi All >>=20 >> I was wondering whether I can use TermRangeQuery for my use case. I = have a collection of ids (represented as XDF-123) and I would like to do = a search for all the ids (might be in the range of 10000) and for each = matching id I want to get the corresponding data that is stored in the = index (for example the document contains id and string value). I am = using a custom collector to collect that string value for each match. = Is it ok to use a TermRangeQuery for the ids rather than creating a = massive query string? >>=20 >>=20 >> Thanks >> Amin >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >>=20 >>=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org