The prior probability P (D) is usually assumed to be uniform and a language model P (Q|D) is estimated for every document.
the major goal of personalized search is to accurately model a user's information need and store it in the user profile and then re-rank the results to suit to the user's interests using the user profile.