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 3787F180D2 for ; Wed, 6 Jan 2016 14:35:07 +0000 (UTC) Received: (qmail 48658 invoked by uid 500); 6 Jan 2016 14:35:04 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 48582 invoked by uid 500); 6 Jan 2016 14:35:04 -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 48570 invoked by uid 99); 6 Jan 2016 14:35:03 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 14:35:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 57020C045C for ; Wed, 6 Jan 2016 14:35:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.443 X-Spam-Level: **** X-Spam-Status: No, score=4.443 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5p7tdT6aN68m for ; Wed, 6 Jan 2016 14:34:58 +0000 (UTC) Received: from mail-ig0-f179.google.com (mail-ig0-f179.google.com [209.85.213.179]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 73217231B8 for ; Wed, 6 Jan 2016 14:34:58 +0000 (UTC) Received: by mail-ig0-f179.google.com with SMTP id z14so29428137igp.0 for ; Wed, 06 Jan 2016 06:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=oGGDiJcOZ06inXe+XOlC1EbrAkOkR1Tvg/qEjoCMOfo=; b=Rwi0WehbXAm92NwqedjaYOhUuhFvzMjzUuRxCdrxjN8KuRnatpYYlfYvO2ZrB5HTpR XzV1DEuFMo/+VVGRejtbpbzv7OtEe2V0MkNBdpDFFIUzd+O++J+yVEVR7m0dVbqSFg1U OkX+clUPZYKuoZu4OYt2u4qU5PBfVMFc7jwLVqKQfpFCT2e0Mf4Vb2I4aXhCxC5BVbPz DqLwwLdpUwJyEozIEPsdVw33RqvxA5NHjb/ngFEDV2olr+gHbcMmkyQEFR3lt13H2004 geX+eCfkAHIutGe49izCo9RJ8k4tpf9Qa/zT3YbSlgJ0jbBLesDxZ5osS5nA0euo+0nK NoAg== X-Received: by 10.50.183.38 with SMTP id ej6mr8957354igc.56.1452090892497; Wed, 06 Jan 2016 06:34:52 -0800 (PST) MIME-Version: 1.0 References: <1452087794518-4248878.post@n3.nabble.com> In-Reply-To: From: Binoy Dalal Date: Wed, 06 Jan 2016 14:34:43 +0000 Message-ID: Subject: Re: Count multivalued field issue To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a1136b1eed437470528ab4105 --001a1136b1eed437470528ab4105 Content-Type: text/plain; charset=UTF-8 You haven't given any name to your update handler. How are you planning to call it? On Wed, 6 Jan 2016, 19:41 GW wrote: > When dealing with Solr data you need to decide whether or not to go > programming. > > when I want to count a multi-value I go programming. > > > $count = array_count($array); > > > > On 6 January 2016 at 08:43, marotosg wrote: > > > Hi, > > > > I am trying to add a new field to my schema to add the number of items > of a > > multivalued field. > > I am using solr 4.11 > > > > These are my fields on *schema.xml* > > > multiValued="true" stored="true" /> > > > > > > Here is the update done to my *solrconfig.xml*. I created an > > updateRequestProcessorChain > > and add it to the update handler > > > > > > > > countfields > > > > > > > > > > > > EmailListS > > EmailListCountD > > > > > > EmailListCountD > > > > > > EmailListCountD > > 0 > > > > > > > > > > > > Am I doing somwthing wrong here? > > > > Thanks for your help. > > > > > > > > > > -- > > View this message in context: > > > http://lucene.472066.n3.nabble.com/Count-multivalued-field-issue-tp4248878.html > > Sent from the Solr - User mailing list archive at Nabble.com. > > > -- Regards, Binoy Dalal --001a1136b1eed437470528ab4105--