lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (Updated) (JIRA)" <>
Subject [jira] [Updated] (SOLR-2802) Toolkit of UpdateProcessors for modifying document values
Date Thu, 29 Dec 2011 04:08:31 GMT


Hoss Man updated SOLR-2802:

    Attachment: SOLR-2802_update_processor_toolkit.patch

Lance: see my 01/Oct/11 comment responding to Erik's nearly identical question (re: scripting)

Updated patch adds some more tools to the tool box...

* HTMLStripFieldUpdateProcessorFactory
* FirstFieldValueUpdateProcessorFactory
* LastFieldValueUpdateProcessorFactory
* MinFieldValueUpdateProcessorFactory
* MaxFieldValueUpdateProcessorFactory

The last 4 are subclasses of a new intermediate base class "FieldValueSubsetUpdateProcessorFactory"
designed to make it easy to write subclasses that want to look at all of the values for a
field as a Collection, and then return some subset of those values. (in these 4 cases, the
subset is always a collection containing a single value)

Working with this patch today was he first time i didn't feel like i needed to tweak the existing
base classes, which has me starting to think that the API is probably gelled enough for mass
consumption.  I'd really like to get some more voices chiming in on what they think of the
field selector configuration schema so we can move forward on getting what's here committed
on trunk, and then iteratively work on adding more concrete subclasses until we're *really*
sure that this API makes sense for people to use when writing subclasses, and then look at
backporting to 3x.

anyone have any opinions on the syntax?

> Toolkit of UpdateProcessors for modifying document values
> ---------------------------------------------------------
>                 Key: SOLR-2802
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Hoss Man
>         Attachments: SOLR-2802_update_processor_toolkit.patch, SOLR-2802_update_processor_toolkit.patch,
> Frequently users ask about questions about things where the answer is "you could do it
with an UpdateProcessor" but the number of our of hte box UpdateProcessors is generally lacking
and there aren't even very good base classes for the common case of manipulating field values
when adding documents

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message