Adopting Inference Networks for Online Thread Retrieval