Search Site        
 
Home  

Chapter 18. Tags

Tag is a special string (numbers and letters) parameter which can be given for a set of documents. The main purpose of tags is to join a number of documents into one group and then while doing search to select a group of documents to search through.

You can use "Tag" field in Server Settings Options dialog to assign tag value for a server or server subset. While doing search you can specify tag value to search through documents which tag matches given parameter with t=xxx parameter, that can be passed from HTML form.

Edit search.htm template to configure search restrictions by tag.

Tags in SQL version

The fact that Tag parameter may contain both numbers and letters allows to use some nice features. Due to the fact that tag is tested against SQL LIKE operator, you can use '_' and '%' LIKE wildcards in tag parameter when doing search. It makes possible that tag, like a category, does support an idea of nesting. For example, documents with tag value "AB" can be found with both "A%" and "AB" tag limits.

Tags also allow to make an URL a member of multiple tag selections. Playing with LIKE wildcards you can easily create two or more groups.

For example, tag "ABCDE" is a member of at least the following selections:


_BCDE
A_CDE
AB_DE
ABC_E
ABCD_

Note

If you have large enough database and often use tag limits, it is useful to create an index by field "tag" in "url" table. This index is not created by default.




Copyright © 2000-2015 Lavtech.Com Corp.