In-Reply-To: <[EMAIL PROTECTED]>
Ninti Systems <[EMAIL PROTECTED]> wrote: on 13 Apr 2004 12:16:26 +0930

> ...I wonder if you you could add your "Select a state" box to
> the search form, and then use Javascript somehow to add that state to
> the search string that gets sent back to the server? Maybe use a Boolean
> type search that must include the State's name along with whatever else
> you're after?

That was my response, too - though it's non-trivial to implement 
cleanly. To flesh it out a bit:

1) Each page should contain a unique state identifier - not just
the TLA because (a) that may occur in text and (b) you don't want
to be indexing two-letter entities. For the sake of example: 

  <TITLE>The Flat Bits</TITLE>
  <META name="keywords" content="stateNE, stateKS, state{etc}"
 
2) Be sure to look up in Attrs.htm and to set:
        keywords_meta_tag_names
        keywords_factor 

3) Drop-down list as noted. For the sake of generality try it as
a SELECT MULTIPLE

4) onSubmit your JavaScript checks whether any are selected, and 
if so sets method=boolean and rewrites the words= term in the 
queryString() to (for example):

  words=((stateNE AND stateKS) AND ({what_the_user_entered}));

> Just an idea, don't have time to play with it myself right now.

Me either.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to