Copyright Joel Verks @ 2008

This is the readme file of my modified version of the original Category Editor 1.7 posted on the mnogosearch download site. mnogosearch is an opensource search engine, found at mnogosearch.org (where else?)

The only modifications I did for this version were:

There is no support provided, and at this time , I don't even intend on releasing this except for my own use.

- Joel
jverks@hackcandy.com

Categories

Notes on Categories: a mailing list post indicated that symlinks do not work on versions 1.3.x or above. I'm not sure if this is true, since it was an old reply.

For a detailed explanation of categories, see the docs:

The official mnogosearch docs http://www.mnogosearch.org/doc/msearch-subsections.html#categories are somewhat confusing (for me), so here is a bottoms up approach at explaining the category scheme:

Categories are contained in the ‘categories’ table.  There are 4 fields,
rec_id, path, link, and name

rec_id = id of the database record

path  = a hex value that identifies where the category lies in the hierarchy or category ‘tree’ . 01 would mean the first main category (or branch), 0102 would mean the second subcategory (or leaf) of the first main category. 0A02 is the second leaf on the 10th branch. See the examples below for additional clarification

link = applies only to a link record.

 

name = name of the category.


Category table Example

 

an example of a category table is shown below.


rec_id

path

link

name

1

 

 

 

17

06

 

toys

9

03

 

wine

8

02

 

gadgets

7

01

 

music

12

05

 

movies

15

04

 

autos

18

0501

 

action

16

@@

02

electronics

20

@@

06

machina

By looking at the path column of the above categories table above, we can tell:

 

 


 

As an additional example, if we wanted to create a hierarchy like this:
Vehicles as the main category, Autos as a subcategory, and cars and machina as links to autos, the table would look like this:

 (not all rows are shown)


rec_id

path

link

name

1

 

 

 

21

06

 

vehicles

22

0601

 

autos

23

06@@

0601

cars

24

06@@

0601

machina

 

Here’s a screenshot of what the Category Editor would look like after configuring the above example:

 

The Category Editor

The category editor is a download from mnogosearch and is a php script that provides a nice GUI to create categories and links.

This was originally created for mnogosearch 1.3.x and php v ancient history :) ( before apparently  there were $_GET and $_POST arrays and globals turned off be default).

 I fixed the form posting so it will work with at least PHP 4, and this readme should be included in the tar of the fixed version

How To Create a a Category and Subcategory in the Category Editor

  1. create the categories by entering in each category under ‘new category’ and clicking insert.
  2. To create a subcategory, simply click the category after creation, and then create the subcategory

 

How to Create a Link in the Category Editor:

  1. Click to the level where you want to create the link.
  2. enter in the name of the link in the ‘New symlink’ field, click ‘Insert’

    Note that this just creates the link record, but does not actually tell the link record which category to point to
  3. Point the link to the category you want it linked to:
    1. under ‘link path’ , enter in the path of the category you want to link to .  To find the link path, look at the category you want to point the link to, and find its path field. Enter in that path field into the ‘Link path’ field of the link record.
      For the example above, you would enter in 0601 to point the ‘cars’ link to category ‘autos’ since the path for ‘autos’ is 0601
cated = category editor for mnogosearch - version 1.7 . This is a free download at http://mnogosearch.org/download.html remove this directory for production