Entity retrieval model,with the sphinx and mongo