Craig Macdonald
added a comment - 25/Apr/14 12:08 AM Matteo, Richard,
Can you review the attached class, I have implemented it to specify the classes to write and read a normal Terrier disk index.
Thanks
Craig

Craig Macdonald
added a comment - 25/Apr/14 5:48 PM It strikes me that the name of the index data structure could be a parameter to the Factory method, as this would allow different compression techniques for the inverted versus direct index.
Richard, I'd also like a comment on how this compression factory integrates with the in-memory index classes?

> It strikes me that the name of the index data structure could be a parameter to the Factory method, as this would allow different compression techniques for the inverted versus direct index.
I'm not sure I got this. In my case I haven't work with direct indexes, but indeed IntegerCodingPostingIndex gets structureName as a constructor parameter. So MAYBE it can read properly written direct indexes without too many modifications.

Matteo Catena
added a comment - 30/Apr/14 11:28 AM The attached class seems ok to me.
> It strikes me that the name of the index data structure could be a parameter to the Factory method, as this would allow different compression techniques for the inverted versus direct index.
I'm not sure I got this. In my case I haven't work with direct indexes, but indeed IntegerCodingPostingIndex gets structureName as a constructor parameter. So MAYBE it can read properly written direct indexes without too many modifications.