Re: I'd like to use a Radio Group, but...
"G. T. Stresen-Reuter" <[email protected]> Tue, 3 Jan 2006 13:31:41 +0000
| Newsgroups | gmane.comp.web.htdig.devel |
|---|---|
| Message-ID | <[email protected]> |
Remember that htidg tries to find "best matches" so it is sometimes=20 difficult to tie keywords to specific pages, but if you have the=20 ability to modify the contents of the pages for which you are seeking a=20= match, then you can tweak the system quite a bit. In other words, I=20 don't think it's possible to do exactly what you are looking for, but=20 here is what I would do: Employ the htdig keyword meta tags (<meta name=3D"htdig-keywords"=20 content=3D"comma,separated,keyword,list" />) in the head of your=20 documents. Then, increase the value of the keywords_factor so that=20 matches including the radio button value will be ranked higher in the=20 search results. Where I work we do something similar. We have a firm directory and want=20= people to be able to find matches on employees' names (first or last,=20 or parts thereof). Thus, in the TITLE element we put their complete=20 name first. Then, in the htdig-keywords meta tag we put the same name,=20= but include any "aliases". Then, near the top of the document we=20 enclose the name in H1 tags. This then gives us three values we can=20 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=20 matches for this person in other parts of the intranet (like documents=20= 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! > =A0 > My name is Eduardo, and I work in a company that uses htdig, but now,=20= > I'd like to add a 'functionality' to this. I'd like to add a=20 > radiogroup with 4 buttons, like: > =A0 > o Title > o Color > o Model > o All > =A0 > Is it possible to search=A0a specific word, filtering with these = radios? > =A0 > My idea is to add more metas, as in the following=A0example: > =A0 > <meta name=3D"title" content=3D"Title here"> > <meta name=3D"Color" content=3D"Color here"> > <meta name=3D"Model" content=3D"Model here"> > =A0 > Is there any other kind of possibility to search this way? > =A0 > Thanks for help, > =A0 > 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_id=7637&alloc_id=16865&op=click _______________________________________________ ht://Dig Developer mailing list: [email protected] List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-dev