A number of situations leading to unexpected query results are flagged by using built-in variables available in the .htx file. Most .htx pages should include a <%if...%>
test on these variables.
CiOutOfDate will be set to the value 1 if the content index has files to filter or scans to complete. Missing results are possible because information about particular documents is either from an old version of the document or missing. When this variable is set, it is possible to get results including deleted files, and files whose current version does not match the query.
CiQueryTimedOut will be set to the value 1 when the amount of CPU time spent executing the query exceeds the limit specified in the MaxQueryExecutionTime parameter in the registry. The variable will be valid for all pages in the result for nonsequentially executed queries. For sequentially executed queries, the CiQueryTimedOut variable is valid only after all available results for the query have been displayed.
CiQueryIncomplete will be set to the value 1 if some portion of the query restriction was ignored. This can occur when a query is forced to use the content index.