[TR-206] Tag information are not loaded within BlockDirectIndex & BlockInvertedIndex Created: 24/Jul/12  Updated: 26/Jul/12  Resolved: 25/Jul/12

Status: Resolved
Project: Terrier Core
Component/s: .structures
Affects Version/s: 3.5
Fix Version/s: 3.6

Type: Bug Priority: Major
Reporter: Sadi Samy Assignee: Craig Macdonald
Resolution: Fixed  
Labels: None

Attachments: File fix.diff    

 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.


 Comments   
Comment by Craig Macdonald [ 25/Jul/12 ]

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?

Comment by Craig Macdonald [ 25/Jul/12 ]

tagging for 3.6

Comment by Craig Macdonald [ 25/Jul/12 ]

This bug was also present in BlockInvertedIndex.

Comment by Craig Macdonald [ 25/Jul/12 ]

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

Comment by Craig Macdonald [ 25/Jul/12 ]

Committed r3640

Comment by Sadi Samy [ 26/Jul/12 ]

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.

Generated at Mon Dec 18 08:59:37 GMT 2017 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.