[TR-268] Query term counting doesn't work Created: 16/Nov/11  Updated: 04/Apr/14  Resolved: 27/Jul/12

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

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

Issue Links:
is duplicated by TR-242 Problem with query terms frequency (k... Resolved

Report by email

In the function:
public void runPreProcessing(SearchRequest srq)
of the class:

There is a line:

This line tries to assign the weight for the query terms based on their
occurrences in the query. However, in this version of terrier, the
weight is always 1.0 for the term, regardless of its times of occurrences.

I think in terrier 3.0, the implantation is correct. Thanks a lot for
your consideration.

Comment by Craig Macdonald [ 25/Jul/12 ]

Tagging for 3.6. I have a unit test showing that can reproduce this bug.

Comment by Craig Macdonald [ 25/Jul/12 ]

Reported by Bo Li, from imag.fr

Comment by Craig Macdonald [ 25/Jul/12 ]

Patch committed to MatchingQueryTerms, r3641

Comment by Craig Macdonald [ 26/Jul/12 ]

This causes TestMatchingQueryTerms to fail.

Comment by Craig Macdonald [ 27/Jul/12 ]

Committed r3653. SingleTermQuery now uses MQT.addTermProperty(), not setTermProperty().

Generated at Thu Apr 09 02:33:17 BST 2020 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.