About Location & Content Categories

SearchUnit supports two types of document categorization; Location categories and Content categories. These are designed to meet the needs of most web applications - here's a summary of each to help you create the most useful categories for your end users;

Location Categories

  • Documents can belong to only one location
  • Users can search inside only one location at a time
  • Location categories are associated to a 'root path', which makes them easily mapped to new documents based on the document's URL (see below)
  • Location categories can also be assigned to documents using the GUI, metatags, programmatically or via a plug-in (see below).
Location Categories

Content Categories

  • Documents can belong to up to ten content categories by default
  • Users can search inside any number of content categories
  • Content categories are not associated to a 'root path' like Location categories are
  • Content categories can also be assigned to documents using the GUI, metatags, programmatically or via a plug-in (see below).
Content Categories

Auto Assign Location Categories

Using Index Management Tool

You can automatically assign pages to specific Location categories directly from your Visual Studio project. Select Manage Index from the SearchResult control and click 'Locations'.

  1. Enter the name of the Location category you would like to create.
  2. In the Auto Assign Path column, enter the string that will be used to identify matching pages.
  3. To automatically assign pages that have already been imported, click 'Auto Assign Documents'.
  4. Note: To reassign documents that have already been assigned to a category select 'Auto Reassign All Documents'.

Any future imported documents that meet the location criteria will be automatically assigned for you.

Assigning Location categories using Index Manager tool

Using Web Administration Tool

To automatically assign documents to Location categories you will need to;

  1. Select 'Manage Location Categories'.
  2. Enter the name of the Location category you would like to create.
  3. In the Location Root Path field, enter the string that will be used to identify matching pages.
  4. Click 'Add'.
  5. To automatically assign pages that have already been imported, click 'Auto Assign'.
  6. Note: Select 'All Documents' and click 'Auto Assign' to reassign documents that have already been assigned to a category.

Any future imported documents that meet the location criteria will be automatically assigned for you.

Assigning Content And Location Categories Through Meta Tags

HTML producing pages (.html, .aspx, .asp etc) can be assigned to categories via meta tags. Simply add either or both of the following tags to the HEAD section of the HTML document before building the Index.

<meta name='Keyoti_Search_Location_Category' content='locationName1' />
<meta name="Keyoti_Search_Content_Categories" content="contentName1, contentName2, ...." />

Note that;

  • Whatever Content/Location category is set using meta tags will completely override any other category assignments made each time the index is built.
  • A document can belong to only one location category, but can belong to any number of content categories
  • Content category names should be separated by commas
  • If the specified location or content category does not already exist, it will be created (this means that care must be made not to enter typo's)

You can reset a document back to the default category using the following tags;

<meta name='Keyoti_Search_Location_Category' content='default' /> <meta name="Keyoti_Search_Content_Categories" content="default" />

Assigning Content And Location Categories Through Central Event System

Please see the Help documentation for details on assigning Content and Location categories through he Central Event System.