: The real issue here is that the docs are created externally, and the
: producer won't (yet) guarantee that fields that should appear once will
: actually appear once. Because of this, I don't want to declare the field as
: multiValued="false" as I don't want to cause indexing errors. It would be
: great for me (and apparently many others after searching) if there were an
: option as simple as forceSingleValued="true" - where some deterministic
: behavior such as "use first field encountered, ignore all others", would
: occur.

This will be trivial in Solr 4.0, using one of the new 
"FieldValueSubsetUpdateProcessorFactory" classes that are now available -- 
just pick your rule... 

https://builds.apache.org/view/G-L/view/Lucene/job/Solr-trunk/javadoc/org/apache/solr/update/processor/FieldValueSubsetUpdateProcessorFactory.html
Direct Known Subclasses:
    FirstFieldValueUpdateProcessorFactory, 
    LastFieldValueUpdateProcessorFactory, 
    MaxFieldValueUpdateProcessorFactory, 
    MinFieldValueUpdateProcessorFactory 

-Hoss

Reply via email to