Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
4.5 KiB

  1. #
  2. # This is the query file for the query.htm query form.
  3. #
  4. [Query]
  5. # The CiCatalog variable must point to where the catalog (index) files
  6. # are stored on your system. You will probably have to change this
  7. # value. If this value is not specified, a default value is read from
  8. # the registry from:
  9. # HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ContentIndex\IsapiDefaultCatalogDirectory
  10. # CiCatalog=d:\ <= COMMENTED OUT - default registry value used
  11. # These are the columns that are referenced in the .htx files
  12. # when formatting output for each hit.
  13. CiColumns=DocTitle,write,newsgroup,newsgroups,newssubject,newsfrom,newsmsgid
  14. # Do a recursive search (ie all directories under CiScope).
  15. # The opposite is SHALLOW
  16. CiFlags=DEEP
  17. # The CiRestriction is the query. Here, it's just pass in from the
  18. # form in the .htm file.
  19. # Use filename extension for scoping. Based on vpath, not filename to force post-processing of
  20. # regular expression. Filename is indexed, but #filename *.nws will match possibly millions of
  21. # files. Intersection is expensive.
  22. CiRestriction=%if SearchString isempty% %else% (%SearchString%) %if DTIME isempty% %if NGroup isempty% %else% & %endif% %else% & %endif% %endif% %if DTIME isempty% %else% @write > -%DTIME%%if DUNIT eq DAYS%d %else%h %endif% %if NGroup isempty% %else% & %endif% %endif% %if NGroup isempty% %else% #NewsGroup %NGroup% %endif%
  23. # Don't allow more than 300 total hits in the result set. It can be
  24. # expensive for the server to allow this value to get too large.
  25. CiMaxRecordsInResultSet=300
  26. # Display CiMaxRecordsPerPage hits on each page of output
  27. #CiMaxRecordsPerPage=%CiMaxRecordsPerPage%
  28. CiMaxRecordsPerPage=25
  29. # CiScope is the directory (virtual or real) under which results are
  30. # returned. If a file matches the query but is not in a directory beneath
  31. # CiScope, it is not returned in the result set.
  32. # A scope of / means all hits matching the query are returned.
  33. CiScope=/
  34. # This is the .htx file to use for formatting the results of the query.
  35. CiTemplate=/scripts/samples/search/news2.htx
  36. # This is the list of property names to use in sorting the results.
  37. # Append [a] or [d] to the property name to specify ascending or
  38. # descending. Separate keys in multi-key sorts with commas.
  39. # For example, to sort on file write date ascending, then file size
  40. # descending, use CiSort=write[a],filesize[d]
  41. CiSort=NewsGroup[a],NewsSubject[a]
  42. # Setting CiForceUseCi to true means that the index is assumed to be
  43. # up to date, so queries that might otherwise force a walk of the
  44. # directory structure (find files older than X), will instead use
  45. # the index and run more quickly. Of course, that means that the results
  46. # might miss files that match the query.
  47. CiForceUseCi=true
  48. #
  49. # Setting CiLocale allows the web master to override the locale sent from
  50. # the browser. Supported locals include (from ISO 639:1988 language codes
  51. # and ISO 3166 country codes):
  52. #
  53. # BG Bulgarian
  54. # ZH Chinese
  55. # ZH-CN Chinese/china
  56. # ZH-TW Chinese/taiwan
  57. # HR Croatian
  58. # CS Czech
  59. # DA Danish
  60. # NL Dutch
  61. # EN English
  62. # EN-GB English-United kingdom
  63. # EN-US English-United States
  64. # FI Finnish
  65. # FR French
  66. # FR-CA French-Canadian
  67. # FR-FR French-France
  68. # DE German
  69. # EL Greek
  70. # IS Icelandic
  71. # IT Italian
  72. # JA Japanese
  73. # KO Korean
  74. # NO Norwegian
  75. # PL Polish
  76. # PT Portuguese
  77. # PT-BR Portuguese-Brazil
  78. # RO Romanian
  79. # RU Russian
  80. # SK Slovak
  81. # SL Slovenian
  82. # ES Spanish
  83. # ES-ES Spanish-Spain
  84. # SV Swedish
  85. # TR Turkish
  86. #
  87. # The locale effects the formatting of dates, times, and numbers. Currency
  88. # is formatted according to the locale of the web server. Locale is also
  89. # used to select the word breaker, and the stop word list.
  90. #
  91. # The web master may want to allow the browser to send the locale when
  92. # attempting to query for text in variety of languages. For example,
  93. # given a single HTML page, one query couold be for German text (CiLocale=De)
  94. # and another could be for Spanish text (CiLocale=Es). If CiLocale is
  95. # not found in the IDQ file the locale send by the web browser is used. If
  96. # no locale is send from the browser, the locale of the web server is used.
  97. #
  98. # The web browser sends its locale via the HTTP_ACCEPT_LANGUAGE parameter
  99. #
  100. #CiLocale=En-US <== specified by the web master
  101. #CiLocale=%CiLocale% <== send from the HTML page
  102. #CiLocale= <== value used from the web browser