FAQ

[jira] [Created] (SOLR-3049) UpdateRequestProcessorChain for UIMA : runtimeParameters: not all types supported

Harsh P (Created) (JIRA)
Jan 19, 2012 at 6:51 am
UpdateRequestProcessorChain for UIMA : runtimeParameters: not all types supported
---------------------------------------------------------------------------------

Key: SOLR-3049
URL: https://issues.apache.org/jira/browse/SOLR-3049
Project: Solr
Issue Type: Bug
Components: update
Reporter: Harsh P
Priority: Minor


solrconfig.xml file has an option to override certain UIMA runtime
parameters in the UpdateRequestProcessorChain section.

There are certain UIMA annotators like RegexAnnotator which define
"runtimeParameters" value as an Array which is not currently supported
in the Solr-UIMA interface.

In java/org/apache/solr/uima/processor/ae/OverridingParamsAEProvider.java,
private Object getRuntimeValue(AnalysisEngineDescription desc, String
attributeName) function defines override for UIMA analysis engine
runtimeParameters as they are passed to UIMA Analysis Engine.
runtimeParameters which are currently supported in the Solr-UIMA interface are:
String
Integer
Boolean
Float

I have made a hack to fix this issue to add Array support. I would
like to submit that as a patch if no one else is working on fixing
this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
reply

Search Discussions

4 responses

  • Tommaso Teofili (Commented) (JIRA) at Jan 29, 2012 at 9:04 am
    [ https://issues.apache.org/jira/browse/SOLR-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195719#comment-13195719 ]

    Tommaso Teofili commented on SOLR-3049:
    ---------------------------------------

    Good catch, if you could provide that patch I will take care of review and commit it if that is ok.

    UpdateRequestProcessorChain for UIMA : runtimeParameters: not all types supported
    ---------------------------------------------------------------------------------

    Key: SOLR-3049
    URL: https://issues.apache.org/jira/browse/SOLR-3049
    Project: Solr
    Issue Type: Bug
    Components: update
    Reporter: Harsh P
    Priority: Minor
    Labels: uima, update_request_handler

    solrconfig.xml file has an option to override certain UIMA runtime
    parameters in the UpdateRequestProcessorChain section.
    There are certain UIMA annotators like RegexAnnotator which define
    "runtimeParameters" value as an Array which is not currently supported
    in the Solr-UIMA interface.
    In java/org/apache/solr/uima/processor/ae/OverridingParamsAEProvider.java,
    private Object getRuntimeValue(AnalysisEngineDescription desc, String
    attributeName) function defines override for UIMA analysis engine
    runtimeParameters as they are passed to UIMA Analysis Engine.
    runtimeParameters which are currently supported in the Solr-UIMA interface are:
    String
    Integer
    Boolean
    Float
    I have made a hack to fix this issue to add Array support. I would
    like to submit that as a patch if no one else is working on fixing
    this issue.
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
    For more information on JIRA, see: http://www.atlassian.com/software/jira



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • Harsh P (Updated) (JIRA) at Feb 1, 2012 at 11:51 am
    [ https://issues.apache.org/jira/browse/SOLR-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Harsh P updated SOLR-3049:
    --------------------------

    Attachment: SOLR-3049.patch

    This is a really quick hack to add support for String Array.
    UpdateRequestProcessorChain for UIMA : runtimeParameters: not all types supported
    ---------------------------------------------------------------------------------

    Key: SOLR-3049
    URL: https://issues.apache.org/jira/browse/SOLR-3049
    Project: Solr
    Issue Type: Bug
    Components: update
    Reporter: Harsh P
    Priority: Minor
    Labels: uima, update_request_handler
    Attachments: SOLR-3049.patch


    solrconfig.xml file has an option to override certain UIMA runtime
    parameters in the UpdateRequestProcessorChain section.
    There are certain UIMA annotators like RegexAnnotator which define
    "runtimeParameters" value as an Array which is not currently supported
    in the Solr-UIMA interface.
    In java/org/apache/solr/uima/processor/ae/OverridingParamsAEProvider.java,
    private Object getRuntimeValue(AnalysisEngineDescription desc, String
    attributeName) function defines override for UIMA analysis engine
    runtimeParameters as they are passed to UIMA Analysis Engine.
    runtimeParameters which are currently supported in the Solr-UIMA interface are:
    String
    Integer
    Boolean
    Float
    I have made a hack to fix this issue to add Array support. I would
    like to submit that as a patch if no one else is working on fixing
    this issue.
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
    For more information on JIRA, see: http://www.atlassian.com/software/jira



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • Tommaso Teofili (Commented) (JIRA) at Feb 4, 2012 at 8:26 am
    [ https://issues.apache.org/jira/browse/SOLR-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13200362#comment-13200362 ]

    Tommaso Teofili commented on SOLR-3049:
    ---------------------------------------

    Hi Harsh, I think there should be a more general way of mapping typed parameters, just need to dig a little deeper to find it.
    However in the meantime I'll try and test your patch, thanks!
    UpdateRequestProcessorChain for UIMA : runtimeParameters: not all types supported
    ---------------------------------------------------------------------------------

    Key: SOLR-3049
    URL: https://issues.apache.org/jira/browse/SOLR-3049
    Project: Solr
    Issue Type: Bug
    Components: update
    Reporter: Harsh P
    Priority: Minor
    Labels: uima, update_request_handler
    Attachments: SOLR-3049.patch


    solrconfig.xml file has an option to override certain UIMA runtime
    parameters in the UpdateRequestProcessorChain section.
    There are certain UIMA annotators like RegexAnnotator which define
    "runtimeParameters" value as an Array which is not currently supported
    in the Solr-UIMA interface.
    In java/org/apache/solr/uima/processor/ae/OverridingParamsAEProvider.java,
    private Object getRuntimeValue(AnalysisEngineDescription desc, String
    attributeName) function defines override for UIMA analysis engine
    runtimeParameters as they are passed to UIMA Analysis Engine.
    runtimeParameters which are currently supported in the Solr-UIMA interface are:
    String
    Integer
    Boolean
    Float
    I have made a hack to fix this issue to add Array support. I would
    like to submit that as a patch if no one else is working on fixing
    this issue.
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
    For more information on JIRA, see: http://www.atlassian.com/software/jira



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • Harshad Patil at Feb 5, 2012 at 2:56 am
    I will try to find a better way.
    I found this issue while using RegexAnnotator.

    On Sat, Feb 4, 2012 at 1:55 PM, Tommaso Teofili (Commented) (JIRA)
    wrote:
    [ https://issues.apache.org/jira/browse/SOLR-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13200362#comment-13200362 ]

    Tommaso Teofili commented on SOLR-3049:
    ---------------------------------------

    Hi Harsh, I think there should be a more general way of mapping typed parameters, just need to dig a little deeper to find it.
    However in the meantime I'll try and test your patch, thanks!
    UpdateRequestProcessorChain for UIMA : runtimeParameters: not all types supported
    ---------------------------------------------------------------------------------

    Key: SOLR-3049
    URL: https://issues.apache.org/jira/browse/SOLR-3049
    Project: Solr
    Issue Type: Bug
    Components: update
    Reporter: Harsh P
    Priority: Minor
    Labels: uima, update_request_handler
    Attachments: SOLR-3049.patch


    solrconfig.xml file has an option to override certain UIMA runtime
    parameters in the UpdateRequestProcessorChain section.
    There are certain UIMA annotators like RegexAnnotator which define
    "runtimeParameters" value as an Array which is not currently supported
    in the Solr-UIMA interface.
    In java/org/apache/solr/uima/processor/ae/OverridingParamsAEProvider.java,
    private Object getRuntimeValue(AnalysisEngineDescription desc, String
    attributeName) function defines override for UIMA analysis engine
    runtimeParameters as they are passed to UIMA Analysis Engine.
    runtimeParameters which are currently supported in the Solr-UIMA interface are:
    String
    Integer
    Boolean
    Float
    I have made a hack to fix this issue to add Array support. I would
    like to submit that as a patch if no one else is working on fixing
    this issue.
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
    For more information on JIRA, see: http://www.atlassian.com/software/jira



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org

Related Discussions

Discussion Navigation
viewthread | post