### Status: *obsolete*

There's now a built-in `/search` page in [Fossil 1.31 and It scans the current contents right away, includes Wiki pages, documents or all files, checkins and timeline events. Furthermore it can be configured  vi `/srchsetup` to build and utilize a FTS (full text search) table.


### Old userland search function

The [Stackoverflow](wiki/Stackoverflow) and [GitHub](wiki/GitHub) themes already include this search feature. Its display is implemented as [TH1](wiki/th1x) script.
It requires a litte setup, but works with other themes as well.

  *  Use to have your repositories updated with a [fx_search](wiki/fx_search) table. (Thanks go to Joel for pointing the `fx_` prefix feature out.)


      *  It traverses existing *.fossil repositories. But the `glob()` could point to just one repo.fossil of course.   <br><br>

      *  Have it run as cron script.  <br><br>

  *  Unless you use the `so-skin.txt` config, you have to manually import the `th1x.tcl` script as `th1-setup` to your repository configuration:

           fossil setting th1-setup "$(cat th1x.tcl)"


  *  In your templates header add following invocation code at the bottom:

           <th1>  catch {ui::search_on_wiki}  </th1>


  *  And following as your search box:

           <form action="wiki">
              <input name="name" size="28" placeholder="search wiki+files">
           </form>

      For the `so-skin` you could else still edit the old Google search box in, of course.


### Attachments

See for

   *  [fossil-search-table.php](wiki/fossil-search-table.php)

   *  [th1x.tcl](wiki/th1x)