design and implementation of knowledge-based system for text retrieval based on context and user’s prior knowledge