> : .map={sku.field}:{id}
>
> the map param is for replacing a *value* with a different' value ... it's
> useful for things like numeric codes in CSV files that you want to replace
> with strings in your index.

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?

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.

-Yonik
http://www.lucidimagination.com


---------- Forwarded message ----------
From: Chris Hostetter <hossman_luc...@fucit.org>
Date: Tue, Sep 15, 2009 at 8:12 PM
Subject: Re: CSV Update - Need help mapping csv field to schema's ID
To: solr-u...@lucene.apache.org



: I would like to add an additional name:value pair for every line, mapping the
: sku field to my schema's id field:
:
: .map={sku.field}:{id}

the map param is for replacing a *value* with a different' value ... it's
useful for things like numeric codes in CSV files that you want to replace
with strings in your index.

: I would prefer NOT to change the schema by adding a <copyField source="sku"
: dest="id"/>.

that's the only solution i can think of unless you want to write an
UpdateProcessor.


-Hoss

Reply via email to