[TR-296] Support indexing upgrading 3.x -> 4.x Created: 06/May/14  Updated: 16/Jun/14  Resolved: 22/May/14

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

Type: Task Priority: Blocker
Reporter: Craig Macdonald Assignee: Craig Macdonald
Resolution: Fixed  
Labels: None


 Description   
Thus far, the format of the bit indices for Terrier 3.x and 4.0 have not changed. We should make a generic properties file updater method that can be called from Index(OnDisk) that rewrites properties.

 Comments   
Comment by Craig Macdonald [ 06/May/14 ]

Example data file:

index.direct.class
	org.terrier.structures.DirectIndex
		org.terrier.structures.BitPostingIndex
	org.terrier.structures.BlockDirectIndex
		org.terrier.structures.BitPostingIndex
index.inverted.class
	org.terrier.structures.InvertedIndex
		org.terrier.structures.BitPostingIndex
	org.terrier.structures.BlockInvertedIndex
		org.terrier.structures.BitPostingIndex

Comment by Craig Macdonald [ 20/May/14 ]

Also has to update the names of the IterablePosting classes used to read the various Bit structures.

Comment by Richard McCreadie [ 22/May/14 ]

Committed to r3841

Relevant class is org.terrier.utility.restructure.Terrier4

Comment by Richard McCreadie [ 22/May/14 ]

IndexOnDisk now automatically checks to see if the Terrier version is 3.x, if so it runs org.terrier.utility.restructure.Terrier4.updateIndexProperties() first and then re-loads the properties.

Committed to r3843

Comment by Richard McCreadie [ 22/May/14 ]

Merged with Craig's version 3844.

Comment by Richard McCreadie [ 22/May/14 ]

Added OnDisk Unit tests and sample 3.x shakespeare indices.

Committed r3846

Generated at Mon Dec 11 15:17:00 GMT 2017 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.