Mean Field Approach to a Probabilistic Model in Information Retrieval