[
https://issues.apache.org/jira/browse/SOLR-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626668#action_12626668
]
Shalin Shekhar Mangar commented on SOLR-733:
--------------------------------------------
I think that is possible with UpdateRequestProcessor.
Instead of adding a custom tag to the XML, add them as normal fields
(metadata1, 2, ...) which will be added to SolrInputDocument. In the processAdd
method you will get access to the value by using
SolrInputDocument#getValue(String field). Use them in whatever way you want,
remove them from SolrInputDocument and add the final processed text to a new
field using SolrInputDocument#addField and finally pass on for indexing by
calling super.processAdd(SolrInputDocument).
> Refactor or expose methods processDelete(), processUpdate(), readDoc() in
> XmlUpdateRequestHandler
> --------------------------------------------------------------------------------------------------
>
> Key: SOLR-733
> URL: https://issues.apache.org/jira/browse/SOLR-733
> Project: Solr
> Issue Type: Wish
> Affects Versions: 1.3
> Reporter: Aaron Whittier
> Priority: Minor
>
> We are extending the functionality of XmlUpdateRequestHandler in our
> application with a couple simple changes, but because the processDelete(),
> processUpdate(), readDoc() are package-private, we've had to copy most of
> XmlUpdateRequestHandler, whether we changed any parts or not. Can those be
> made more pluggable?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.