|
From: Martin V. <mv...@PD...> - 2002-05-03 05:45:00
|
Geoff Hutchison wrote: > Sankaranarayanan M.G. wrote: > > in most cases I want a > > exact match... but in some cases I prefer to do a substring match... > > can the user have an option of switching between the type of search > > without changing the value each time in the conf file. > > Sure. Use the "config" field in the search form and have to > config files. > <http://www.htdig.org/hts_form.html> Or set up a select list, e.g. <select name="search_algorithm"> <option value="exact" selected>exact</option> <option value="substring">substring</option> </select> backed by a configuration statement that allows the search_algorithm attribute to be set by the form: allow_in_form: search_algorithm You probably want to build_select_lists for that choice, too. See http://www.htdig.org/attrs.html for the attributes' descriptions. cu, Martin -- So long, and thanks | Martin Vorlaender | VMS & WNT programmer for all the books... | work: mv...@pd... In Memoriam Douglas Adams | http://www.pdv-systeme.de/users/martinv/ 1952-2001 | home: ma...@ra... |