You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Aaron Whittier (JIRA)" <ji...@apache.org> on 2008/08/28 19:26:47 UTC

[jira] Issue Comment Edited: (SOLR-733) Refactor or expose methods processDelete(), processUpdate(), readDoc() in XmlUpdateRequestHandler

    [ https://issues.apache.org/jira/browse/SOLR-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626658#action_12626658 ] 

aaronwhittier edited comment on SOLR-733 at 8/28/08 10:26 AM:
---------------------------------------------------------------

I don't think the UpdateRequestProcessor will let me do what I want. Let me describe what we're trying to do - maybe I can do it easily without cloning XmlUpdateRequestHandler.

We want to add additional data to the XML <doc> tag, a <RichContent> tag which has a couple attributes, and whose contents are textual data. We want to translate this data into different text and then attach it to one of the lucene fields in the SolrInputDocument, which can then be processed normally. What I want, I think, is to be able to override the readDoc() method in XmlUpdateRequestHandler.

Does that make sense? I could easily be missing a simple solution, as I'm new to Solr.

      was (Author: aaronwhittier):
    I don't think the UpdateRequestProcessor will let me do what I want. Let me describe what we're trying to do - maybe I can do it easily without cloning XmlUpdateRequestHandler.

We want to add additional data to the XML <doc> tag, a <RichContent> tag which has a couple attributes, and whose contents are textual data. We want to translate this data into text and then attach it to one of the lucene fields in the SolrInputDocument, which can then be processed normally. What I want, I think, is to be able to override the readDoc() method in XmlUpdateRequestHandler.

Does that make sense? I could easily be missing a simple solution, as I'm new to Solr.
  
> 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.