The second part of the refined search is to enter a new query in the search form within the results template. The initial query text is appended automatically to the new query text when the refined search request is made from the results list. The second query is run only against the results of the initial query. You can simply add to any results template the necessary HTML for the secondary, refined search form. Refined Query Search Form Source Following is example source for enabling refined searches in a results template.
Optional elements are in bold .
An indented line should be considered a continuation of the previous line and is split here only because of the page margins. Note that this is only the search form portion of the results template. From the initial search form, the text entered in the query text box becomes the value for QueryText. The results for the initial query are displayed according to the refined query results template. When a subsequent query is entered in the refined search form, the previous query becomes the value of SourceQueryText, and the new query becomes the value of QueryText, as in the initial search.