Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a2d29ba77c8fe4d655c72d0b897f51ad > files > 271

mnogosearch-3.3.8-3mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>ReplaceVar</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="RemoteFileNameCharset"
HREF="msearch-cmdref-remotefilenamecharset.html"><LINK
REL="NEXT"
TITLE="ResultContentType"
HREF="msearch-cmdref-resultcontenttype.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-remotefilenamecharset.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-resultcontenttype.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="cmdref-replacevar"
></A
>ReplaceVar</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN11384"
></A
><H2
>Name</H2
><B
CLASS="command"
>ReplaceVar</B
>&nbsp;--&nbsp;creates or modifies a variable<P
><B
></B
><TT
CLASS="filename"
>indexer.conf</TT
></P
><P
><B
></B
><TT
CLASS="filename"
>search.htm</TT
></P
></DIV
><DIV
CLASS="refsynopsisdiv"
><A
NAME="AEN11392"
></A
><H2
>Synopsis</H2
><P
><B
CLASS="command"
>ReplaceVar</B
>  {name} {value}</P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN11397"
></A
><H2
></H2
><P
>&#13;    Creates a variable with the given
    <CODE
CLASS="parameter"
>name</CODE
> and <CODE
CLASS="parameter"
>value</CODE
>,
    for further use in other <TT
CLASS="filename"
>indexer.conf</TT
>
    or <TT
CLASS="filename"
>search.htm</TT
> commands, or as a <TT
CLASS="filename"
>search.htm</TT
> template variable.
    </P
><P
>&#13;    If the variable has previously been created with another
    <B
CLASS="command"
>ReplaceVar</B
> or <A
HREF="msearch-cmdref-importenv.html"
>ImportEnv</A
> command,
    then its old value is replaced.
    </P
><P
>&#13;    The <CODE
CLASS="parameter"
>value</CODE
> parameter can
    reference to other variables previously created by
    <B
CLASS="command"
>ReplaceVar</B
> or <A
HREF="msearch-cmdref-importenv.html"
>ImportEnv</A
> commands
    using <CODE
CLASS="varname"
>$(name)</CODE
> syntax.
    </P
><P
>Variables created using <B
CLASS="command"
>ReplaceVar</B
> are
    considered to have the character set with the one specified in
    <A
HREF="msearch-cmdref-localcharset.html"
>LocalCharset</A
>. When being displayed
    in search template, variable values are converted to
    <A
HREF="msearch-cmdref-browsercharset.html"
>BrowserCharset</A
>.
    </P
><P
>&#13;    <B
CLASS="command"
>ReplaceVar</B
> can also be used to set 
    <A
HREF="msearch-doingsearch.html#search-params"
>search query parameters</A
>
    in <TT
CLASS="filename"
>search.htm</TT
>, without having to pass them in <ACRONYM
CLASS="acronym"
>CGI</ACRONYM
> query
    string. This example sets sorting order to <CODE
CLASS="varname"
>title</CODE
>,
    like if the <CODE
CLASS="option"
>s=s&#38;su=title</CODE
> parameters would have been
    passed in <ACRONYM
CLASS="acronym"
>CGI</ACRONYM
> query string:
    <PRE
CLASS="programlisting"
>&#13;ReplaceVar s s
ReplaceVar su title
    </PRE
>
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
      <B
CLASS="command"
>ReplaceVar</B
> has higher precedence over <ACRONYM
CLASS="acronym"
>CGI</ACRONYM
> query string
      parameters. In the above example <SPAN
CLASS="application"
>search.cgi</SPAN
> will sort search results
      strictly in <CODE
CLASS="varname"
>title</CODE
> ascending order, no matter what
      the user pass in <CODE
CLASS="option"
>s</CODE
> and <CODE
CLASS="option"
>su</CODE
> query string
      parameters.
      </P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN11434"
></A
><H2
>Examples</H2
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN11436"
></A
><PRE
CLASS="programlisting"
>&#13;ReplaceVar etcdir "/usr/local/mnogosearch/etc/"
Include $(etcdir)/include1.conf
Include $(etcdir)/include2.conf
      </PRE
><P
></P
></DIV
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN11438"
></A
><H2
>See also</H2
><P
>&#13;      <A
HREF="msearch-cmdref-importenv.html"
>ImportEnv</A
>,
      <A
HREF="msearch-cmdref-include.html"
>Include</A
>,
      <A
HREF="msearch-templates-oper.html#templates-oper-set"
>the Section called <I
>The <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>SET</I
></SPAN
> operator</I
> in Chapter 10</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-remotefilenamecharset.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-resultcontenttype.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>RemoteFileNameCharset</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"
>ResultContentType</TD
></TR
></TABLE
></DIV
><!--#include virtual="body-after.html"--></BODY
></HTML
>