Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D5BDE9E5B for ; Mon, 2 Jul 2012 17:02:11 +0000 (UTC) Received: (qmail 16180 invoked by uid 500); 2 Jul 2012 17:02:08 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 16122 invoked by uid 500); 2 Jul 2012 17:02:08 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 16112 invoked by uid 99); 2 Jul 2012 17:02:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 17:02:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chamnapchhorn@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; Mon, 02 Jul 2012 17:02:03 +0000 Received: by obbtb18 with SMTP id tb18so592304obb.35 for ; Mon, 02 Jul 2012 10:01:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ORI8LHc5ZTqM1aKjP+hV3FiUJTu0MyXyITv/+SLgIy4=; b=AKr+qfQssENSnf7c7xahhnKPhcg7ITCPCbDdKaBEwaK2cVXZlwHtkvVi+5sau/A5JB BtiX7azT3s7ewxUCGg/AW5ExsjxxlZ2sbAxryRuDhGcm7CvO8u5iz7O0BB9PKC8Sm+8Y Irw+nfHNM2e0DnrLdYaHn7ypQk3OeBXVOvfj03SJ+86ekzz9gtbrqyhQulbPf6QDbBsN ZgbZOAq3IzUhIKNqKkWOx/SR/fOhefHx3hxFGNIw8TKKcwiA+7zKVEPC8AF7Wmku0QjT 6Hdie6fESDfyqBvdBMRqsn1Ed5SCl+lR8gvIwL70nfyvbjNAYVV+sfgHoNg7LgZa+cn7 P0gw== Received: by 10.182.50.98 with SMTP id b2mr9027380obo.28.1341248502954; Mon, 02 Jul 2012 10:01:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.140.164 with HTTP; Mon, 2 Jul 2012 10:01:22 -0700 (PDT) In-Reply-To: References: From: Chamnap Chhorn Date: Tue, 3 Jul 2012 00:01:22 +0700 Message-ID: Subject: Re: How to improve this solr query? To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=f46d044481d992fa2704c3dbc0bb X-Virus-Checked: Checked by ClamAV on apache.org --f46d044481d992fa2704c3dbc0bb Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Michael, Thanks for quick response. Based on documentation, "facet.mincount" means that solr will return facet fields that has at least that number. For me, I just want to ensure my facet fields count doesn't have zero value. I try to increase to 10, but it still slows even for the same query. Actually, those 13 million documents are divided into 200 portals. I already include "fq=3Dportal_uuid: kjkjkjk" inside each nested query, but it's still slow. On Mon, Jul 2, 2012 at 11:47 PM, Michael Della Bitta < michael.della.bitta@appinions.com> wrote: > Hi Chamnap, > > The first thing that jumped out at me was "facet.mincount=3D1". Are you > sure you need this? Increasing this number should drastically improve > speed. > > Michael Della Bitta > > ------------------------------------------------ > Appinions, Inc. -- Where Influence Isn=92t a Game. > http://www.appinions.com > > > On Mon, Jul 2, 2012 at 12:35 PM, Chamnap Chhorn > wrote: > > Hi all, > > > > I'm using solr 3.5 with nested query on the 4 core cpu server + 17 Gb. > The > > problem is that my query is so slow; the average response time is 12 se= cs > > against 13 millions documents. > > > > What I am doing is to send quoted string (q2) to string fields and > > non-quoted string (q1) to other fields and combine the result together. > > > > > facet=3Dtrue&sort=3Dscore+desc&q2=3D*"apartment"*&facet.mincount=3D1&q1= =3D*apartment* > > > &tie=3D0.1&q.alt=3D*:*&wt=3Djson&version=3D2.2&rows=3D20&fl=3Duuid&facet.= query=3Dhas_map:+true&facet.query=3Dhas_image:+true&facet.query=3Dhas_websi= te:+true&start=3D0&q=3D > > * > > > _query_:+"{!dismax+qf=3D'.....'+fq=3D'......'+v=3D$q1}"+OR+_query_:+"{!di= smax+qf=3D'......'+fq=3D'.......'+v=3D$q2}" > > * > > > &facet.field=3D{!ex%3Ddt}sub_category_uuids&facet.field=3D{!ex%3Ddt}locat= ion_uuid > > > > I have done solr optimize already, but it's still slow. Any idea how to > > improve the speed? Am I done anything wrong? > > > > -- > > Chhorn Chamnap > > http://chamnap.github.com/ > --=20 Chhorn Chamnap http://chamnap.github.com/ --f46d044481d992fa2704c3dbc0bb--