Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-206

Tag information are not loaded within BlockDirectIndex & BlockInvertedIndex

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.6
    • Component/s: .structures
    • Labels:
      None

      Description

      When using BlockDirectIndex and when saving field information, the method BlockDirectIndex.getTerms(docPointer) should return an int[][] where int[2+fieldId] must contain the frequencies of the terms in that field (identified by fieldId).

      For now it just doesn't work..

      I've joined a fix. See attachment.

        Attachments

          Activity

          sadi.samy Sadi Samy created issue -
          sadi.samy Sadi Samy made changes -
          Field Original Value New Value
          Status Open [ 1 ] Patch Available [ 10000 ]
          Hide
          craigm Craig Macdonald added a comment -

          Good spot. I intend to remove the getTerms() method in the next /major/ release of Terrier. Do you have scenario where this method is easier to use?

          Show
          craigm Craig Macdonald added a comment - Good spot. I intend to remove the getTerms() method in the next /major/ release of Terrier. Do you have scenario where this method is easier to use?
          Hide
          craigm Craig Macdonald added a comment -

          tagging for 3.6

          Show
          craigm Craig Macdonald added a comment - tagging for 3.6
          craigm Craig Macdonald made changes -
          Fix Version/s 3.6 [ 10060 ]
          Hide
          craigm Craig Macdonald added a comment -

          This bug was also present in BlockInvertedIndex.

          Show
          craigm Craig Macdonald added a comment - This bug was also present in BlockInvertedIndex.
          craigm Craig Macdonald made changes -
          Summary Tag information are not loaded within BlockDirectIndex Tag information are not loaded within BlockDirectIndex & BlockInvertedIndex
          Hide
          craigm Craig Macdonald added a comment -

          Sadi, do you have an institution that I should credit for this issue (along with you of course)?

          Show
          craigm Craig Macdonald added a comment - Sadi, do you have an institution that I should credit for this issue (along with you of course)?
          Hide
          craigm Craig Macdonald added a comment -

          Committed r3640

          Show
          craigm Craig Macdonald added a comment - Committed r3640
          craigm Craig Macdonald made changes -
          Status Patch Available [ 10000 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          sadi.samy Sadi Samy added a comment -

          I use BlockDirectIndex.getTerms(docPointer) in a PostProcess to modify a ResultSet using field information.
          I could have used "FieldTags.modifiers" property to do this..
          I use this in an extension I've written for link analysis in Terrier (that I will post here very soon).

          No institution to credit. You could just put my email address <sadi.samy1 at gmail dot com>. Thanks.

          Show
          sadi.samy Sadi Samy added a comment - I use BlockDirectIndex.getTerms(docPointer) in a PostProcess to modify a ResultSet using field information. I could have used "FieldTags.modifiers" property to do this.. I use this in an extension I've written for link analysis in Terrier (that I will post here very soon). No institution to credit. You could just put my email address <sadi.samy1 at gmail dot com>. Thanks.

            People

            • Assignee:
              craigm Craig Macdonald
              Reporter:
              sadi.samy Sadi Samy
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: