Remember that htidg tries to find "best matches" so it is sometimes difficult to tie keywords to specific pages, but if you have the ability to modify the contents of the pages for which you are seeking a match, then you can tweak the system quite a bit. In other words, I don't think it's possible to do exactly what you are looking for, but here is what I would do:

Employ the htdig keyword meta tags (<meta name="htdig-keywords" content="comma,separated,keyword,list" />) in the head of your documents. Then, increase the value of the keywords_factor so that matches including the radio button value will be ranked higher in the search results.

Where I work we do something similar. We have a firm directory and want people to be able to find matches on employees' names (first or last, or parts thereof). Thus, in the TITLE element we put their complete name first. Then, in the htdig-keywords meta tag we put the same name, but include any "aliases". Then, near the top of the document we enclose the name in H1 tags. This then gives us three values we can manipulate to improve search results:

http://www.htdig.org/attrs.html#keywords_factor
http://www.htdig.org/attrs.html#heading_factor
http://www.htdig.org/attrs.html#title_factor

We're satisfied by the results of this approach because it also finds matches for this person in other parts of the intranet (like documents in the "best practices" section that this person has authored).

Hope this helps.

Ted Stresen-Reuter
(Hi Neal ;-)

On Dec 30, 2005, at 12:00 PM, Eduardo B Domanski wrote:

Hi!
 
My name is Eduardo, and I work in a company that uses htdig, but now, I'd like to add a 'functionality' to this. I'd like to add a radiogroup with 4 buttons, like:
 
o Title
o Color
o Model
o All
 
Is it possible to search a specific word, filtering with these radios?
 
My idea is to add more metas, as in the following example:
 
<meta name="title" content="Title here">
<meta name="Color" content="Color here">
<meta name="Model" content="Model here">
 
Is there any other kind of possibility to search this way?
 
Thanks for help,
 
Eduardo Bortoleto Domanski


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
ht://Dig Developer mailing list:
htdig-dev@lists.sourceforge.net
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to