<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Realm</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="mnoGoSearch 3.3.8 reference manual" HREF="index.html"><LINK REL="UP" TITLE="mnoGoSearch command reference" HREF="msearch-cmdref.html"><LINK REL="PREVIOUS" TITLE="ReadTimeOut" HREF="msearch-cmdref-readtimeout.html"><LINK REL="NEXT" TITLE="RemoteCharset" HREF="msearch-cmdref-remotecharset.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.8 reference manual: Full-featured search engine software</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="msearch-cmdref-readtimeout.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-remotecharset.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="cmdref-realm" ></A >Realm</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN11206" ></A ><H2 >Name</H2 ><B CLASS="command" >Realm</B > -- describes Web-space for indexing, using regex/wild patterns<P ><B ></B ><TT CLASS="filename" >indexer.conf</TT ></P ></DIV ><DIV CLASS="refsynopsisdiv" ><A NAME="AEN11212" ></A ><H2 >Synopsis</H2 ><P ><B CLASS="command" >Realm</B > [Subsection] [Method] [CmpType] [Match | NoMatch] {pattern} [alias]</P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN11223" ></A ><H2 >Description</H2 ><P ><B CLASS="command" >Realm</B > works very similar to the <B CLASS="command" ><A HREF="msearch-cmdref-server.html" >Server</A ></B > command but takes a <SPAN CLASS="emphasis" ><I CLASS="emphasis" >regular expression</I ></SPAN > or <SPAN CLASS="emphasis" ><I CLASS="emphasis" >string wildcards</I ></SPAN > as a pattern (rather than a <SPAN CLASS="emphasis" ><I CLASS="emphasis" >prefix</I ></SPAN > pattern) and does not insert the pattern into the database as <SPAN CLASS="emphasis" ><I CLASS="emphasis" >entry point</I ></SPAN > <ACRONYM CLASS="acronym" >URL</ACRONYM >. <DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > To insert an <ACRONYM CLASS="acronym" >URL</ACRONYM > into the database, you can use the <B CLASS="command" ><A HREF="msearch-cmdref-url.html" >URL</A ></B > command. </P ></BLOCKQUOTE ></DIV > </P ><P ><CODE CLASS="parameter" >Subsection</CODE > is an optional parameter which can take one of the following values: <TT CLASS="literal" >site</TT >, <TT CLASS="literal" >world</TT >, with <TT CLASS="literal" >world</TT > being default. </P ><P > If <CODE CLASS="parameter" >Subsection</CODE > is set to <TT CLASS="literal" >site</TT >, then a link between two documents is followed only if both documents belong to the same site. If <CODE CLASS="parameter" >Subsection</CODE > is set to <TT CLASS="literal" >world</TT > then no site checking is done. </P ><P ><CODE CLASS="parameter" >Method</CODE > is an optional parameter which can take one of the following values: <TT CLASS="literal" >Allow</TT > (default), <TT CLASS="literal" >Disallow</TT >, <TT CLASS="literal" >CheckOnly</TT >, <TT CLASS="literal" >HrefOnly</TT >, <TT CLASS="literal" >CheckMP3</TT >, <TT CLASS="literal" >CheckMP3Only</TT >. </P ><P ><CODE CLASS="parameter" >CmpType</CODE > is an optional parameter to specify <SPAN CLASS="emphasis" ><I CLASS="emphasis" >comparison type</I ></SPAN > and can take either <TT CLASS="literal" >String</TT > or <TT CLASS="literal" >RegEx</TT > values, with <TT CLASS="literal" >String</TT > being the default. </P ><P > The <CODE CLASS="parameter" >pattern</CODE > parameter define <ACRONYM CLASS="acronym" >URL</ACRONYM > pattern. All documents with <ACRONYM CLASS="acronym" >URL</ACRONYM > matching the given pattern are considered as <SPAN CLASS="emphasis" ><I CLASS="emphasis" >corresponding</I ></SPAN > to this <B CLASS="command" >Realm</B > command. </P ><P >The optional <CODE CLASS="parameter" >alias</CODE > argument allows to provide an <ACRONYM CLASS="acronym" >URL</ACRONYM > rewrite rule, which is a powerful <A HREF="msearch-indexer-configuration.html#aliases" >aliasing mechanism</A >. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN11273" ></A ><H2 >Scope</H2 ><P > <B CLASS="command" >Realm</B > takes global effect for the entire configuration file and can be used multiple times. <DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > Mutual order of <B CLASS="command" >Realm</B > and/or <B CLASS="command" >Server</B > commands can be important. See <A HREF="msearch-indexer-configuration.html#follow-difparam" >the Section called <I >Using different parameters for a server and its subsections</I > in Chapter 3</A > for more details. </P ></BLOCKQUOTE ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN11282" ></A ><H2 >Examples</H2 ><DIV CLASS="informalexample" ><P ></P ><A NAME="AEN11284" ></A ><PRE CLASS="programlisting" > # Index all HTTP sites in the .ru domain: Realm http://*.ru/* # The same using "Regex" match: Realm Regex ^http://.*\.ru/ # Index everything but .com domain: Realm NoMatch http://*.com/* </PRE ><P ></P ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN11286" ></A ><H2 >See also</H2 ><P > <A HREF="msearch-cmdref-flushservertable.html" >FlushServerTable</A >, <A HREF="msearch-cmdref-server.html" >Server</A >, <A HREF="msearch-cmdref-servertable.html" >ServerTable</A >, <A HREF="msearch-cmdref-subnet.html" >Subnet</A >, <A HREF="msearch-cmdref-url.html" >URL</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-readtimeout.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-remotecharset.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ReadTimeOut</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" >RemoteCharset</TD ></TR ></TABLE ></DIV ><!--#include virtual="body-after.html"--></BODY ></HTML >