You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2015/04/17 18:13:59 UTC

[jira] [Created] (UIMA-4352) index contains and find methods incorrect when index type has subtypes

Marshall Schor created UIMA-4352:
------------------------------------

             Summary: index contains and find methods incorrect when index type has subtypes
                 Key: UIMA-4352
                 URL: https://issues.apache.org/jira/browse/UIMA-4352
             Project: UIMA
          Issue Type: Bug
    Affects Versions: 2.7.0SDK
            Reporter: Marshall Schor
            Assignee: Marshall Schor
            Priority: Minor


The Javadocs in FSIndex (the general interface for UIMA index implementations) has two methods, contains(FeatureStructure) and find(FeatureStructure), which state the obvious definition.  UIMA Indexes are over some Type and its subtypes.  The current implementation of these methods only check the topmost Type of that index, and ignore subtypes.  So, for instance, if you have an index over type T, and add-to-indexes a subtype of T, and then ask if the index contains that one, implementation only checks the top-most "type", and incorrectly returns false.  Find also fails in the same way.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)