Re: (no subject)
Daniel Naber <[email protected]>
| Newsgroups | gmane.comp.web.perlfect-search |
|---|---|
| Message-ID | <[email protected]> |
On Saturday 05 October 2002 12:19, Maninder, Singh wrote:
> Would it be possible to modify the search engine so that (based on a
> metatag in the doc) it excludes pages that are not appropriate to the
> platform (Windows or Mac) that the user has?
If you know a bit Perl, sure. You could add a database file, like
$INV_INDEX_DB_FILE and all the others. During indexing you analyse the
meta tags and write the information into that "file" (it's a hash, the key
would be the document id, the value whatever value you're interested in).
When searching you query that information in answer_query(), just like
it's done for query->param('include') and query->param('exclude').
In other words: it should be quite simple.
regards
Daniel
--
http://www.danielnaber.de
_______________________________________________
perlfect-search mailing list
[email protected]
To unsubscribe, set other personal options or view the list archives please visit:
http://perlfect.com/mailman/listinfo/perlfect-search