[TR-173] The Decorate class incorrectly adds meta index properties when used as a PostProcess rather than a PostFilter Created: 28/Jun/11  Updated: 17/Apr/12  Resolved: 17/Apr/12

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

Type: Bug Priority: Minor
Reporter: Richard McCreadie Assignee: Richard McCreadie
Resolution: Fixed  
Labels: None

Attachments: Java Source File Decorate.java    
Issue Links:
is blocked by TR-253 Decorate & SimpleDecorate needs unit ... Resolved

The Decorate class, which is responsible for adding metadata to the Terrier ResultSets for display, incorrectly adds metadata for each key when used as a PostProcess rather than a PostFilter. In particular, it adds all meta entries for a single document when given a key, instead the meta entries for all documents for that key.

This does not effect the Web-based interface example on the terrier,org website as it used the Decorate class as a PostFilter, which works correctly.

A version of the Decorate class where this issue is fixed is attached.

Comment by Greg Maksa [ 29/Jun/11 ]

Thanks for the quick response guys, it really gave me a hard time yesterday. Facet Categories here I come > >:o >:O

Comment by Craig Macdonald [ 17/Apr/12 ]

Committed r3610 for Terrier 3.6

Generated at Sun Apr 21 19:31:39 BST 2019 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.