Three forms of contextual search have been proposed in the literature. The first one is to scan the full text of a query to figure out user needs and based on that scan, HTML pages for content will return an index of the relevant content. In this case, the user has no control over the context of the query. The second form of contextual search is used by meta-search engines and requires the user to supply explicitly contextual information about the query to increase the precision of the returned results. The meta search engine acts as a mediator between the user query and search engines. This will increase significantly the precision of the results but add to the complexity of the user interface. The third form is to automatically infer the context of the query based on the content of the other documents. This results in the modification of search results based on previous knowledge and situations. The work presented in this paper aims to develop a search engine based on a contextual search for the translation of the Quran in the Indonesian language in order to improve the performance of the search engine and provide information needed by the user based on the context of the query. In this paper, we present and discuss an algorithm that makes use of the semantics of an information source in the form of context to support the intelligent search for information over the Web or database.