|
|
3.13. Storing compressed document copiesIn DataparkSearch it is possible to store compressed copies of indexed documents. Copies are stored and retrieved by the new daemon - stored, that is installed into sbin directory of DataparkSearch installation (default: /usr/local/dpsearch/sbin). To enable documents copies archiving without stored usage, place DoStore yes command in your indexer.conf file instead of stored daemon configuration. Stored document copies are retrieved by means of storedoc.cgi CGI script. It requests a saved copy of a documents from stored, then a copy is displayed with user's web browser with search keywords highlighted. To enable stored support, compile DataparkSearch with zlib support: ./configure --with-zlib <other arguments> You may use the Store and NoStore commands to allow or disallow storing several files by pattern. For arguments of those commands are exactly the same as for the Allow command (see Section 3.10.14>). All documents are stores by defaults, if support for stored is enabled. 3.13.1. Configure storedTo start using stored, please do the following:
3.13.2. How stored worksAfter you have successfully configured stored, the indexer pass downloaded documents to stored daemon. After that, stored compress the received documents and save them. 3.13.3. Using stored during searchTo enable displaying stored documents during search, do the following:
This is how stored works during search, if everything configured correctly:
3.13.4. Document excerptsstored is also used to make documents excerpts for search results. You can use ExcerptSize command in search.htm template to specify average excerpt size in characters; value by default: 256. With ExcerptPadding command you can specify average number of characters is taken before and after a search word in excerpts; value by default: 40. With ExcerptMark command you can alter the marking character sequence which delimits excerpt chunks; value by default: " ... " (a space, a dots, a space). You may switch off document excerpts (but retain ability to show stored copies) with DoExcerpt no command in your search template. |