This section contains an example of how you might set up categorization in the IDOL Category component. Each step provides several examples of possible actions for that step.
Create a few categories.
action=CategoryCreate&Name=Animals&Category=10
action=CategoryCreate&Name=Cats&Parent=10&Category=11
action=CategoryCreate&Name=Dogs&Parent=10&Category=12
Train the new categories (from a selection of indexed documents, free text, and Boolean rules).
action=CategorySetTraining&Category=10&DocRef=http://foo.com/animals&DocID=109,178
action=CategorySetTraining&Category=11&Training=Cats and kittens can be a variety of colours, such as tabby or tortoiseshell
action=CategorySetTraining&Category=12&Boolean=dog OR hound
Build the categories (this processes the training into terms and weights, enabling CategoryQuery
and CategorySuggest
).
action=CategoryBuild&Category=10&Recurse=True
Manually adjust the terms and weights for one of the categories, and rebuild it.
action=CategorySetTnW&Category=11&Terms=cat,kitten&Weights=500,400
action=CategoryBuild&Category=11
Query for documents matching a particular category, with optional parameters.
action=CategoryQuery&Category=11
action=CategoryQuery&Category=12&DatabaseMatch=News&NumResults=10
Categorize already-indexed documents or free text.
action=categorySuggestfromDocument&DocID=1465
action=CategorySuggestFromText&QueryText=the cat in the hat