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: [EMAIL PROTECTED]
In Memoriam Douglas Adams  |   http://www.pdv-systeme.de/users/martinv/
            1952-2001      | home: [EMAIL PROTECTED]



_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to