incubator-oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OODT-57) LuceneCatalog.getNumHits() doesn't properly translate the given Query object into the equivalent Lucene query
Date Sat, 13 Nov 2010 05:02:15 GMT

    [ https://issues.apache.org/jira/browse/OODT-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931626#action_12931626
] 

Chris A. Mattmann commented on OODT-57:
---------------------------------------

Gabe, patch applied fine to my local checkout. All unit tests pass:

Results :

Tests run: 77, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 57 seconds
[INFO] Finished at: Fri Nov 12 20:59:47 PST 2010
[INFO] Final Memory: 40M/96M
[INFO] ------------------------------------------------------------------------
[chipotle:oodt/trunk/filemgr] mattmann% 


I'll commit this now...

> LuceneCatalog.getNumHits() doesn't properly translate the given Query object into the
equivalent Lucene query
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: OODT-57
>                 URL: https://issues.apache.org/jira/browse/OODT-57
>             Project: OODT
>          Issue Type: Bug
>          Components: file manager
>    Affects Versions: 0.1-incubating
>            Reporter: Gabe Resneck
>            Assignee: Chris A. Mattmann
>            Priority: Minor
>             Fix For: 0.2-incubating
>
>         Attachments: OODT-57.gabe-resneck.111210.patch.txt
>
>
> Presently, the getNumHits() method reconstructs the given query by only translating the
queryCriteria that are direct children of the Query object.  This means that the only queries
that receive correct results from this method are those that contain only one term or range
criterion.
> This bug can easily be fixed by instead using a recursive procedure that will translate
each criterion into data understood by Lucene before doing the same to its children.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message