<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >HoldBadHrefs</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="HlEnd" HREF="msearch-cmdref-hlend.html"><LINK REL="NEXT" TITLE="HrefOnly" HREF="msearch-cmdref-hrefonly.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-hlend.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-hrefonly.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="cmdref-holdbadhrefs" ></A >HoldBadHrefs</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN9329" ></A ><H2 >Name</H2 ><B CLASS="command" >HoldBadHrefs</B > -- defines period of time to keep bad documents in the database<P ><B ></B ><TT CLASS="filename" >indexer.conf</TT ></P ></DIV ><DIV CLASS="refsynopsisdiv" ><A NAME="AEN9335" ></A ><H2 >Synopsis</H2 ><P ><B CLASS="command" >HoldBadHrefs</B > {time}</P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN9339" ></A ><H2 >Description</H2 ><P > <B CLASS="command" >HoldBadHrefs</B > defines period of time to keep unavailable documents (with bad status, e.g. <TT CLASS="literal" >404 Not found</TT > or <TT CLASS="literal" >503 Service unavailable</TT >) before deleting them from the database. </P ><P > When <SPAN CLASS="application" >indexer</SPAN > finds that a remote host is down, the documents from this site are not deleted from the database immediately and <SPAN CLASS="application" >search.cgi</SPAN > uses the previous content of these documents. However, if the site doesn't respond for a long period of time (e.g. a month), it should be fine to remove its documents from the database. </P ><P > The default value is <TT CLASS="literal" >0</TT >, which means never delete unavailable documents from the database automatically (for better crawling performance). </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > You can periodically delete bad documents from the database manually, using <SPAN CLASS="application" >indexer</SPAN > with the <CODE CLASS="option" >-s</CODE > command line parameter (<SPAN CLASS="emphasis" ><I CLASS="emphasis" >status limit</I ></SPAN >), for example: <KBD CLASS="userinput" >indexer -Cw -s404</KBD >. </P ></BLOCKQUOTE ></DIV ><P >See <A HREF="msearch-cmdref-period.html" >Period</A > for the time format description. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN9358" ></A ><H2 >Scope</H2 ><P > <B CLASS="command" >HoldBadHrefs</B > affects all the following <A HREF="msearch-cmdref-server.html" >Server</A > and <A HREF="msearch-cmdref-realm.html" >Realm</A > commands until the end of the configuration file, or until the next <B CLASS="command" >HoldBadHrefs</B > command. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN9365" ></A ><H2 >Examples</H2 ><DIV CLASS="informalexample" ><P ></P ><A NAME="AEN9367" ></A ><PRE CLASS="programlisting" > HoldBadHrefs 30d </PRE ><P ></P ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN9369" ></A ><H2 >See also</H2 ><P > <A HREF="msearch-cmdref-doctimeout.html" >DocTimeOut</A >, <A HREF="msearch-cmdref-maxneterrors.html" >MaxNetErrors</A >, <A HREF="msearch-cmdref-neterrordelaytime.html" >NetErrorDelayTime</A >, <A HREF="msearch-cmdref-parsertimeout.html" >ParserTimeOut</A >, <A HREF="msearch-cmdref-readtimeout.html" >ReadTimeOut</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-hlend.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-hrefonly.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >HlEnd</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" >HrefOnly</TD ></TR ></TABLE ></DIV ><!--#include virtual="body-after.html"--></BODY ></HTML >