rewrote the entire thing to use elasticsearch instead