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 E5FFF10BF5 for ; Wed, 24 Jul 2013 17:04:18 +0000 (UTC) Received: (qmail 19337 invoked by uid 500); 24 Jul 2013 17:04:16 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 19283 invoked by uid 500); 24 Jul 2013 17:04:16 -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 19273 invoked by uid 99); 24 Jul 2013 17:04:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 17:04:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sankar@gmail.com designates 209.85.219.45 as permitted sender) Received: from [209.85.219.45] (HELO mail-oa0-f45.google.com) (209.85.219.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 17:04:09 +0000 Received: by mail-oa0-f45.google.com with SMTP id j1so1593563oag.4 for ; Wed, 24 Jul 2013 10:03:48 -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=TzWWRVKzdo+hLLirLC20hiTdudyP8mc/v8DuHDuvw0I=; b=uFqISEowPJw4vgiavqm/fFF/mCflBxNgcjDsrajy+54mq5CH1a8cMynVeEaTW41f2f Zkl51KCNVWHFAIuIzMNlwkWnhmSxnAVDelvPyHfUEZnBOzwUUmFJTiASKYFSXFahGOtl Q3gWhegM1ELHyFKSv9XlLqxOVnaZYRJ23Hzep0U2jn/GtuF8SYrTOM13Q2BjTtoZYlAf GjTqRvkZVlj1Mhkt+a6MymYBPx4Gk1NOqQcmPc4E9zoB8/Fp+y7CPM+pNi1iuON6EOEJ gItOg2SsQ1DWD+NykhXpBLgidrcl+b/LNwIPlFzHcY8+SSAjwjwJMGBvqz8z+lNk/ajy q6yQ== MIME-Version: 1.0 X-Received: by 10.42.172.194 with SMTP id o2mr19551381icz.41.1374685428712; Wed, 24 Jul 2013 10:03:48 -0700 (PDT) Received: by 10.43.54.199 with HTTP; Wed, 24 Jul 2013 10:03:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 24 Jul 2013 10:03:48 -0700 Message-ID: Subject: Re: Performance measurements From: Sriram Sankar To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e8342a825a604e244e40a X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba6e8342a825a604e244e40a Content-Type: text/plain; charset=ISO-8859-1 No I do not need scoring. This is a pure retrieval query - which matches what we used to do with Unicorn in Facebook - something like: (name:sriram AND (friend:1 OR friend:2 ...)) This automatically gives us second degree. With Unicorn, we would always get sub-millisecond performance even for n>500. Should I assume that Lucene is that much worse - or is it that this use case has not been optimized? Sriram. On Wed, Jul 24, 2013 at 9:59 AM, Adrien Grand wrote: > Hi, > > On Wed, Jul 24, 2013 at 6:11 PM, Sriram Sankar wrote: > > termA AND (termB1 OR termB2 OR ... OR termBn) > > Maybe this comment is not appropriate for your use-case, but if you > don't actually need scoring from the disjunction on the right of the > query, a TermsFilter will be faster when n gets large. > > -- > Adrien > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --90e6ba6e8342a825a604e244e40a--