CNSearch 1.5.1
Plugins
Plugins are special modules which allow optimizing the program functionality. CNSearch uses plugins to index files of different types.
Plugins should be stored in the indexer directory. UNIX and Linux versions have an extension .so, Windows versions - .dll. To disable a plugin, you should move it to the other directory.
Three plugins are included in the current distribution kit. They allow indexing files of the following types:
File name in UNIX/Linux version |
File name in Windows version |
Type of the processed document |
libtxt.so |
libtxt.dll |
*.TXT - test files |
librtf.so |
librtf.dll |
*.RTF - Rich Text Format files |
libdoc.so |
libdoc.dll |
*.DOC - Microsoft Word files |
libxls.so |
libxls.dll |
*.XLS - Microsoft Excel files |
libmp3.so |
libmp3.dll |
*.MP3 - MPEG Layer 3 audio-files |
Plugins of version 0.92 do not define character sets, because it is not necessary for most files.
The field 'encoding', in documents processed by plugins, is replaced by the text set up in plugin, which allows composing templates where type of the found document is displayed.
At a start-up, the indexer launches all active plugins, for example:
F:\1\bin\indexer>searchctl.exe localhost
CNSearch ver.0.92 [build 2073]
Compiled 07.04.2002 under MS Windows 2000 [Version 5.00.2195]
Rebuilding URL list...Ok.
Loading library: RTF (Rich text format)
Loading library: TXT (Plain text)
Loading library: DOC (Microsoft Word document format)
http://www.test.ru/
The main advantage of the plugins is ability to develop new plugins to index files of some specific formats (for example, images and so on).
__________