[ 
https://issues.apache.org/jira/browse/UIMA-4152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marshall Schor resolved UIMA-4152.
----------------------------------
    Resolution: Fixed

> Misleading doc / impl for contains and find for FSIndex
> -------------------------------------------------------
>
>                 Key: UIMA-4152
>                 URL: https://issues.apache.org/jira/browse/UIMA-4152
>             Project: UIMA
>          Issue Type: Question
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>
> FSIndex objects are returned to the user when they get an index from the 
> index repository.  FSIndex objects support methods like size(), iterator(), 
> contains() and find().
> size() and iterator() methods consider the index to contain instances of a 
> particular type and all of its included subtypes. 
> However, the implementation of the contains and find is such that it only 
> searches the defined type of the index, excluding any elements which may be 
> in the index, but are a subtype of the type of the index. 
> I'll check in a test case which shows this behavior. 
> The question is: should the docs be updated to describe the impl, or should 
> the impl (for find and contains) be updated to run over the subtypes that 
> might be in the index?



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

Reply via email to