diff options
| author | Michael Peter Christen <mc@yacy.net> | 2012-01-26 11:20:14 +0100 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2012-01-26 11:20:14 +0100 |
| commit | 329e3eebcf08ca718b02f04c287bd32063e0ec13 (patch) | |
| tree | bd8d46c7bb2b32f2aa6083b7eecf12dfd3060f97 /vocabularies/readme.txt | |
| parent | 046d7de95b071faae49f6abaad943d2209eab969 (diff) | |
added example vocabularies and explanation how to use them
Diffstat (limited to 'vocabularies/readme.txt')
| -rw-r--r-- | vocabularies/readme.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vocabularies/readme.txt b/vocabularies/readme.txt new file mode 100644 index 000000000..b338257cf --- /dev/null +++ b/vocabularies/readme.txt @@ -0,0 +1,32 @@ +A vocabulary is used to produce search navigation entities. +A search navigation is what you see at the right column +at the side of a search results where it is possible to reduce the +set of result entries with given restrictions. + +A vocabulary is a restriction where the search results are restricted to +entries which have a specific tag in the subject metadata that corresponds +to the vocabulary restriction. The restriction is expressed with a set of +synonyms for the tag in a property-like file. Such files are activated if +they are present in the folder DATA/DICTIONARIES/autotagging/ at start-up time +and the vocabulary files must be named with a '.vocabulary' extension. + +Vocabulary files are similar to property-files with these rules rules: +- the key represents the vocabulary term (this is what you see in the navigation) +- a value is a list of synonyms for the vocabulary term +- a term is always self-referencing (the term is also a synonym for the term) +- a value may be omitted (a self-referencing-only vocabulary) + +The format of a vocabulary file is: +each line has the format +<print-name>[=<synonym>{','<synonym>}*] +or the line starts with a '#' for comment lines + +The subdirectories of this directory contains example-vocabularies for +specific languages. Vocabularies work best if the vocabulary is expressed in +the same language as the documents are that are indexed. + +A vocabulary can be activated by doing: +- copy the vocabulary from the <lang>/ subdirectory to DATA/DICTIONARIES/autotagging/ +- restart +- do an indexing of the web-pages. Vocabularies cannot be applied to already indexed + web pages because tags are only generated during the parsing process |
