Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-57

LuceneCatalog.getNumHits() doesn't properly translate the given Query object into the equivalent Lucene query

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.1-incubating
    • 0.2
    • file manager
    • None

    Description

      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.

      Attachments

        Activity

          No work has yet been logged on this issue.

          People

            chrismattmann Chris A. Mattmann
            gabe.resneck Gabe Resneck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: