<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >ExcerptPadding</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="mnoGoSearch 3.3.9 reference manual" HREF="index.html"><LINK REL="UP" TITLE="mnoGoSearch command reference" HREF="msearch-cmdref.html"><LINK REL="PREVIOUS" TITLE="ExcerptStopword" HREF="msearch-cmdref-excerptstopword.html"><LINK REL="NEXT" TITLE="FlushServerTable" HREF="msearch-cmdref-flushservertable.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="mnogo.css"><META NAME="Description" CONTENT="mnoGoSearch - Full Featured Web site Open Source Search Engine Software over the Internet and Intranet Web Sites Based on SQL Database. It is a Free search software covered by GNU license."><META NAME="Keywords" CONTENT="shareware, freeware, download, internet, unix, utilities, search engine, text retrieval, knowledge retrieval, text search, information retrieval, database search, mining, intranet, webserver, index, spider, filesearch, meta, free, open source, full-text, udmsearch, website, find, opensource, search, searching, software, udmsearch, engine, indexing, system, web, ftp, http, cgi, php, SQL, MySQL, database, php3, FreeBSD, Linux, Unix, mnoGoSearch, MacOS X, Mac OS X, Windows, 2000, NT, 95, 98, GNU, GPL, url, grabbing"></HEAD ><BODY CLASS="refentry" BGCOLOR="#EEEEEE" TEXT="#000000" LINK="#000080" VLINK="#800080" ALINK="#FF0000" ><!--#include virtual="body-before.html"--><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" ><SPAN CLASS="application" >mnoGoSearch</SPAN > 3.3.9 reference manual: Full-featured search engine software</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="msearch-cmdref-excerptstopword.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="msearch-cmdref-flushservertable.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="cmdref-excerptpadding" ></A >ExcerptPadding</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN9009" ></A ><H2 >Name</H2 ><B CLASS="command" >ExcerptPadding</B > -- defines excerpt context length<P ><B ></B ><TT CLASS="filename" >search.htm</TT ></P ></DIV ><DIV CLASS="refsynopsisdiv" ><A NAME="AEN9015" ></A ><H2 >Synopsis</H2 ><P ><B CLASS="command" >ExcerptPadding</B > {length}</P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN9019" ></A ><H2 >Description</H2 ><P ><B CLASS="command" >ExcerptPadding</B > defines context length for <SPAN CLASS="emphasis" ><I CLASS="emphasis" >context chunks</I ></SPAN > and affects appearance of the <CODE CLASS="varname" >$&(body)</CODE > template variable. </P ><P >When building excerpts for presenting a document in search results (using either <SPAN CLASS="emphasis" ><I CLASS="emphasis" >Cached Copy</I ></SPAN > or the <SPAN CLASS="emphasis" ><I CLASS="emphasis" >body</I ></SPAN > section of the document, or the <A HREF="msearch-cmdref-uselocalcachedcopy.html" >original document</A >), <SPAN CLASS="application" >search.cgi</SPAN > concatenates <SPAN CLASS="emphasis" ><I CLASS="emphasis" >context chunks</I ></SPAN >. Every context chunk consists of a search query word padded with its original context from the left and the right sides and can be up to <TT CLASS="literal" >ExcerptPadding * 2 + length(word)</TT > characters. </P ><P > The default value is <TT CLASS="literal" >40</TT >. </P ><P > The <SPAN CLASS="emphasis" ><I CLASS="emphasis" >number</I ></SPAN > of context chunks concatenated into a document except can be approximately calculated as <TT CLASS="literal" >ExcerptSize / (ExcerptPadding * 2 + length(word))</TT >. So a larger <B CLASS="command" >ExcerptPadding</B > value makes every context chunk longer but reduces the number of context chunks that can fit into <A HREF="msearch-cmdref-excerptsize.html" >ExcerptSize</A >. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN9039" ></A ><H2 >Examples</H2 ><DIV CLASS="informalexample" ><P ></P ><A NAME="AEN9041" ></A ><PRE CLASS="programlisting" > ExcerptPadding 64 </PRE ><P ></P ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN9043" ></A ><H2 >See also</H2 ><P > <A HREF="msearch-cmdref-dateformat.html" >DateFormat</A >, <A HREF="msearch-cmdref-excerptsize.html" >ExcerptSize</A >, <A HREF="msearch-cmdref-excerptstopword.html" >ExcerptStopword</A >, <A HREF="msearch-cmdref-hlbeg.html" >HlBeg</A >, <A HREF="msearch-cmdref-hlend.html" >HlEnd</A >, <A HREF="msearch-cmdref-locale.html" >Locale</A >, <A HREF="msearch-cmdref-pagesperscreen.html" >PagesPerScreen</A >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="msearch-cmdref-excerptstopword.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="msearch-cmdref-flushservertable.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ExcerptStopword</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="msearch-cmdref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >FlushServerTable</TD ></TR ></TABLE ></DIV ><!--#include virtual="body-after.html"--></BODY ></HTML >