Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 76773 invoked from network); 16 Sep 2009 15:08:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Sep 2009 15:08:55 -0000 Received: (qmail 14901 invoked by uid 500); 16 Sep 2009 15:08:54 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 14841 invoked by uid 500); 16 Sep 2009 15:08:54 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 14831 invoked by uid 99); 16 Sep 2009 15:08:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 15:08:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of insight49@gmail.com designates 209.85.218.214 as permitted sender) Received: from [209.85.218.214] (HELO mail-bw0-f214.google.com) (209.85.218.214) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 15:08:44 +0000 Received: by bwz10 with SMTP id 10so4059497bwz.5 for ; Wed, 16 Sep 2009 08:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id :disposition-notification-to:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=rQL+y3ta2r8cO8u6g1UFAivfQxHD1l84Ccey/FUWo0w=; b=EaEMUDWPKwY1Hb8ZDLyY17gotMPlV1B8yFxC3BY2+ubfrNVs6TkafFWnqhkXVPhJWp BjJVgs0pexIBUqTQowIyJqUEXUDyrgR/SVccR+EYFE0qK6JJaw9d7luDS/ZUbyd+m4QB TmXB1C0gZYv3deC8y+H1pZXb+VUFU7zydzWeM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; b=jQr49EnsfnqAzTfH8bkESx7Vz77WMOgpSqKRuu9kPYIa4s06UmWaNs9PMJ4sAJpRFd gf6XVuj441J2umK6lmiqPyT/p9DL55T3PWce9fQBWKo+l1Cq8kIZ1jxEd/WJEysS3n05 pqD6i59XoduTaFrNrYy9d93V3Q/yzAFR/y5dA= Received: by 10.204.8.13 with SMTP id f13mr7569772bkf.150.1253113704380; Wed, 16 Sep 2009 08:08:24 -0700 (PDT) Received: from ?192.168.1.9? (S0106001e906ae98f.cg.shawcable.net [68.146.95.167]) by mx.google.com with ESMTPS id k29sm9712086fkk.25.2009.09.16.08.08.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 16 Sep 2009 08:08:23 -0700 (PDT) Message-ID: <4AB100F9.9070600@gmail.com> Date: Wed, 16 Sep 2009 09:15:05 -0600 From: "Insight 49, LLC" User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: solr-dev@lucene.apache.org Subject: Re: CSV Update - Need help mapping csv field to schema's ID References: <4AAD2161.3050104@gmail.com> <7AE54DAF-7643-4412-88AA-C0AFAA9EE9D0@apache.org> In-Reply-To: <7AE54DAF-7643-4412-88AA-C0AFAA9EE9D0@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Darn. I hate when I create work for people. My need is to take a csv file, use the CSV update handler, but then add an additional copyfield (sku from csv to id from schema) to create a unique id for each record. Thanks guys. Terrific work on SOLR. Dan Grant Ingersoll wrote: > > On Sep 15, 2009, at 8:25 PM, Yonik Seeley wrote: > >> Darn... I shouldn't trust my memory. >> From http://issues.apache.org/jira/browse/SOLR-284 >> '''drop "ext." from parameter names, and revisit naming to try and >> unify with other update handlers like CSV''' >> >> So now map.a=b in CSV is for values but map.a=b in SolrCell is for >> fields.... >> perhaps we should change map in SolrCell to fmap? > > That's fine by me. Just update the docs when you're done. > >> >> My longer range idea was to pull out some generally useful things like >> field mapping, etc, such that they could be shared across update >> handlers. > > See also: > SOLR-1032, SOLR-1069 for related things. We should be able to refactor > the field mapping code easy enough. >