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

Posting.getDocumentLength() does not work for postings from the direct file

    Details

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

      Description

      The following code raises an error when WeightingModel.score(Posting) is called, as a posting retrieved from the direct file apparently does not encapsulate the document length appropriately.

      WeightingModel wm = new BM25();

      DocumentIndex document = index.getDirectIndex();
      DocumentIndexEntry de = document.getDocumentEntry(docid);
      IterablePosting ip = direct.getPostings(de);

      double score = 0;
      while (ip.next()) {
          score += wm.score(ip);
      }

        Attachments

          Activity

          rodrygo Rodrygo L. T. Santos created issue -
          craigm Craig Macdonald made changes -
          Field Original Value New Value
          Assignee Craig Macdonald [ craigm ] Rodrygo L. T. Santos [ rodrygo ]
          craigm Craig Macdonald made changes -
          Affects Version/s 3.0 [ 10020 ]
          Fix Version/s 3.1 [ 10021 ]
          rodrygo Rodrygo L. T. Santos made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          craigm Craig Macdonald made changes -
          Project TREC [ 10010 ] Terrier Core [ 10000 ]
          Key TREC-78 TR-129
          Workflow jira [ 10172 ] Terrier Open Source [ 10522 ]
          Affects Version/s 3.0 [ 10030 ]
          Affects Version/s 3.0 [ 10020 ]
          Component/s .structures [ 10007 ]
          Component/s Core [ 10020 ]
          Fix Version/s 3.1 [ 10040 ]
          Fix Version/s 3.1 [ 10021 ]

            People

            • Assignee:
              rodrygo Rodrygo L. T. Santos
              Reporter:
              rodrygo Rodrygo L. T. Santos
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: