Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

Validity date filter for reference search #78

Merged
merged 3 commits into from Mar 20, 2013

Conversation

saulius
Copy link
Contributor

@saulius saulius commented Mar 20, 2013

This is additional change is for https://www.pivotaltracker.com/story/show/45933843.

Our synonyms (references) search didn't take into account validity date of the referenced chapter/heading that is why it was suggesting exipred (by search issue date) records. This was fixed along with duplicate removal and correct ordering.

After deployment we should not be seeing most popular heading suggestion 2851 which has validity end date of 31st Dec 2006 (here https://www.gov.uk/trade-tariff/search?utf8=%E2%9C%93&q=trade_tariff&t=water&button=&day=20&month=3&year=2013&country=). But we should still be seeing it before validity end date time, e.g.:
https://www.gov.uk/trade-tariff/search?utf8=%E2%9C%93&q=trade_tariff&t=water&button=&day=20&month=3&year=2005&country=.

Also we should not be seeing duplicate chapters here https://www.gov.uk/trade-tariff/search?utf8=%E2%9C%93&q=trade_tariff&t=alloy&button=&day=20&month=3&year=2014&country= and they should be sorted in correct order.

This change requires reindexing task to be run after deploy.

Also removes duplicate referenced results.
Fixes issue with reference search results containing invalid results
Extract functionality to smaller, focused classes
@matthewford matthewford merged commit 94a4c61 into master Mar 20, 2013
@matthewford matthewford deleted the reference_search_validity_periods branch March 20, 2013 12:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants