According to [EMAIL PROTECTED]: > At 11:33 PM -0600 12/6/01, Geoff Hutchison wrote: > >At 12:25 AM -0500 12/7/01, [EMAIL PROTECTED] wrote: > >>I like to ask how I can repair the "and"s in the below? > > > >Personally, I usually use the WORDS template variable because users > >find it confusing to see their query become "fuzzy." Your search > >would then display "header and sample" (or whatever). > > Thanks. Sorry to fire right back... but it's late and I'm ill. :( whaaa. > > I'm going now to try to find info about this "Words" template variable. > I'm going to assume that has to do with the search.html; if not, > please point me, please.
No, the search.html file isn't a template file. It's used as-is as a static HTML page, which you can of course modify to suit your tastes. Template files are usually installed in your COMMON_DIR, and are files such as header.html, nomatch.html, etc. The template files are parsed by htsearch and the template variable references are replaced with the contents of these variables. See http://www.htdig.org/hts_templates.html There are a couple reasons why the default templates use LOGICAL_WORDS instead of WORDS. One is to give a good example of the use of both variables, instead of just sticking to one (WORDS is also used as appropriates in these templates), and the other reason is because some users like it this way. I certainly like seeing how fuzzy matches expand. If you don't want it this way, there's no harm in changing the templates to use WORDS throughout. Getting back to the original problem, though, the reason the word "and" is repeated 3 times is the middle one is actually one of your search words. If you enter "foo and bar" as the query, and your search method isn't set to boolean, the word "and" is taken as a search word, not a boolean operator. If your search method is set to Any or All, the "or" or "and" operators are implied between each word in the query. I thought I had made that point clear yesterday. I guess what I didn't say is that these implied operators are explictly inserted into LOGICAL_WORDS. > >p.s. Boolean only becomes a choice (in the pop-up) after an initial > >search, is that right? > > In the default search.html form? Yes. Can you put it into the > search.html form? Sure. Could you make it the default? Yes. (Some > people have separate "quick search" and "advanced search" pages.) Actually, as of version 3.1.4, i.e. 2 years ago, the default search.html form did include Boolean as an option in the select list. You must be using an older version, or one in which this option got edited out. -- Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 _______________________________________________ htdig-general mailing list <[EMAIL PROTECTED]> To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html

