[
https://issues.apache.org/jira/browse/OODT-890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14954999#comment-14954999
]
Tom Barber commented on OODT-890:
---------------------------------
Depends which one you call:
https://github.com/apache/oodt/blob/master/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java#L685
That one works as designed.
https://github.com/apache/oodt/blob/master/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java#L741
That one just returns the contents of the list. the new Vector<Product>(n)
isn't an upper limit its just a starting point, so if you say
getTopNProducts(5, "GenericFile") or something and you have 20 items on a page,
it returns 20 items.
> getTopNProducts by type returns wrong value
> -------------------------------------------
>
> Key: OODT-890
> URL: https://issues.apache.org/jira/browse/OODT-890
> Project: OODT
> Issue Type: Bug
> Reporter: Tom Barber
> Assignee: Tom Barber
>
> When fixing some bugs, I found a method in the LuceneCatalog that is
> getTopNProducts limited by number of products and product type, but it
> returns all products in a page not the top x.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)