<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Subsections</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="mnoGoSearch 3.3.9 reference manual" HREF="index.html"><LINK REL="PREVIOUS" TITLE="IBM DB2 notes " HREF="msearch-db2.html"><LINK REL="NEXT" TITLE="Tags" HREF="msearch-tags.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="mnogo.css"><META NAME="Description" CONTENT="mnoGoSearch - Full Featured Web site Open Source Search Engine Software over the Internet and Intranet Web Sites Based on SQL Database. It is a Free search software covered by GNU license."><META NAME="Keywords" CONTENT="shareware, freeware, download, internet, unix, utilities, search engine, text retrieval, knowledge retrieval, text search, information retrieval, database search, mining, intranet, webserver, index, spider, filesearch, meta, free, open source, full-text, udmsearch, website, find, opensource, search, searching, software, udmsearch, engine, indexing, system, web, ftp, http, cgi, php, SQL, MySQL, database, php3, FreeBSD, Linux, Unix, mnoGoSearch, MacOS X, Mac OS X, Windows, 2000, NT, 95, 98, GNU, GPL, url, grabbing"></HEAD ><BODY CLASS="chapter" BGCOLOR="#EEEEEE" TEXT="#000000" LINK="#000080" VLINK="#800080" ALINK="#FF0000" ><!--#include virtual="body-before.html"--><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" ><SPAN CLASS="application" >mnoGoSearch</SPAN > 3.3.9 reference manual: Full-featured search engine software</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="msearch-db2.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="msearch-tags.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="chapter" ><H1 ><A NAME="subsections" ></A >Chapter 8. Subsections</H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="msearch-subsections.html#categories" >Categories <A NAME="AEN3655" ></A ></A ></DT ><DT ><A HREF="msearch-tags.html" >Tags</A ></DT ></DL ></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="categories" >Categories <A NAME="AEN3655" ></A ></A ></H1 ><P > Starting from version 3.1.1 <SPAN CLASS="application" >mnoGoSearch</SPAN > supports nested categories. </P ><P >There is a category editor written in <SPAN CLASS="application" >PHP3</SPAN > and <SPAN CLASS="application" >Perl</SPAN >. You can get it from <A HREF="http://mnogosearch.org/download.html" TARGET="_top" > <SPAN CLASS="application" >mnoGoSearch</SPAN > downloads page</A >. </P ><P > Categories are similar to the tags, but nested. So you can have one category inside another and so on. </P ><P >Basic points: <P ></P ><UL ><LI ><P >there are up to 6 nested levels;</P ></LI ><LI ><P >every level occupies two hexadecimal or 36-base digits;</P ></LI ><LI ><P >the parameter for setting category is a <CODE CLASS="parameter" >path</CODE >, which can be empty (which means the root category) or up to 10 chars long (in case of the deepest category). </P ></LI ></UL > </P ><P >You can also set up <SPAN CLASS="emphasis" ><I CLASS="emphasis" >symlinks</I ></SPAN >, i.e. categories that are actually links to other categories. This is the role of the <TT CLASS="literal" >link</TT > database field. In the symlink, the last two characters should be @@. In example above Moto->BMW is a link to Auto->BMW.</P ><P >First notice that a category in the server table is set to be 11 characters long. This means you can use a valid character to keep track of the categories. If you are going to keep a category tree of any size, then I would suggest using the category editor from <A HREF="http://mnogosearch.org/download.html" TARGET="_top" > <SPAN CLASS="application" >mnoGoSearch</SPAN > downloads page</A >. </P ><P >You can use either the tag column or the category column on the server to do the same thing. Or you can categorize a site in two different ways. For example you could keep track of sites that are owned by a certain company and then categorize them as well. You could use the tag option to keep a trace of ownership and use the category option for categories. When I explain the category option, note it goes the same for the tag option. </P ><P >A category can be broken down any way you choose. But for it to work with the category editor, I believe for now, you have to use two characters for each level. If you use the category editor you have the choice to use a hex number going from 0-F or a 36 base number going from 0-Z. Therefore a top-level category like 'Auto' would be 01. If it has a subcategory like 'Ford', then it would be 01 (the parent category) and then 'Ford' which we will give 01. Put those together and you get 0101. If 'Auto' had another subcategory named 'VW', then its id would not be 01 because it belongs to the 'Ford' category but 02 because it's the next category. So its id would be 0102. If VW had a sub category called 'Engine' then it's id would start at 01 again and it would get the 'VW' id 02 and 'Auto' id of 01, making it 010201.</P ><P >If you want to search for sites under that category then you could pass it <TT CLASS="literal" >cat=010201</TT > into the url...so you could create a select box that would look like that: <PRE CLASS="programlisting" > <OPTION value="01">AUTO <OPTION value="0101">Ford </PRE > </P ><P >and so on...</P ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="msearch-db2.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="msearch-tags.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >IBM DB2 notes <A NAME="AEN3637" ></A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Tags</TD ></TR ></TABLE ></DIV ><!--#include virtual="body-after.html"--></BODY ></HTML >