Define Whoosh schemas as classes, it better fits with rest of the code