Learning model for efficient query routing in P2P information retrieval systems