Sophie

Sophie

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

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
>UserSiteScore</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="UserScore"
HREF="msearch-cmdref-userscore.html"><LINK
REL="NEXT"
TITLE="UserScoreFactor"
HREF="msearch-cmdref-userscorefactor.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-userscore.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-userscorefactor.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="cmdref-usersitescore"
></A
>UserSiteScore</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN13292"
></A
><H2
>Name</H2
><B
CLASS="command"
>UserSiteScore</B
>&nbsp;--&nbsp;specifies an <ACRONYM
CLASS="acronym"
>SQL</ACRONYM
> query to calculate user defined score
    for certain sites.
    <P
><B
></B
><TT
CLASS="filename"
>search.htm</TT
></P
></DIV
><DIV
CLASS="refsynopsisdiv"
><A
NAME="AEN13299"
></A
><H2
>Synopsis</H2
><P
><B
CLASS="command"
>UserSiteScore</B
>  {name} {sql-query}</P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN13304"
></A
><H2
>Description</H2
><P
>&#13;    The <B
CLASS="command"
>UserSiteScore</B
> command allows to
    configure user defined scores for some or all
    servers in the database. The score value
    calculated by <SPAN
CLASS="application"
>mnoGoSearch</SPAN
>
    is mixed with the user defined site value,
    so you can affect the final rank for the desired sites.
    </P
><P
>&#13;    It is possible to configure multiple
    <B
CLASS="command"
>UserSiteScore</B
> commands,
    however only one of them can be used during search time.
    The <TT
CLASS="literal"
>name</TT
> argument should be unique
    in every <B
CLASS="command"
>UserSiteScore</B
> command.
    <SPAN
CLASS="application"
>search.cgi</SPAN
> detects which
    <B
CLASS="command"
>UserSiteScore</B
> command to use taking
    its name from the <TT
CLASS="literal"
>ss=name1</TT
>
    <ACRONYM
CLASS="acronym"
>HTML</ACRONYM
> form parameter. If no <TT
CLASS="literal"
>ss</TT
>
    parameter is given, or <TT
CLASS="literal"
>ss</TT
>'s
    value is empty, non of the
    <B
CLASS="command"
>UserSiteScore</B
> commands are applied.
    </P
><P
>The second argument must represent an <ACRONYM
CLASS="acronym"
>SQL</ACRONYM
> query returning
    a result set consisting of two columns. The first column in every
    record should correspond to an <CODE
CLASS="varname"
>ID</CODE
> of a site whose score
    should be modified.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
    The site <CODE
CLASS="varname"
>ID</CODE
>s are stored in the <TT
CLASS="literal"
>site_id</TT
>
    column of the <CODE
CLASS="varname"
>url</CODE
> table of the
    <SPAN
CLASS="application"
>mnoGoSearch</SPAN
> database. To know an <CODE
CLASS="varname"
>ID</CODE
> of a certain site
    you can run this <ACRONYM
CLASS="acronym"
>SQL</ACRONYM
> query in the database:
    <PRE
CLASS="programlisting"
>&#13;SELECT site_id FROM url WHERE url LIKE 'http://hostname/%';
    </PRE
>
    </P
></BLOCKQUOTE
></DIV
><P
>&#13;    The second column stands for a user defined score value for this site,
    returned as a signed integer in the range <TT
CLASS="literal"
>-255..+255</TT
>.
    The original score value calculated by
    <SPAN
CLASS="application"
>mnoGoSearch</SPAN
> is mixed with the
    user defined site value as follows:
    <P
></P
><UL
><LI
><P
>A positive user defined site value makes the final rank for this site higher.</P
></LI
><LI
><P
>A negative user defined site value makes the final rank lower.</P
></LI
><LI
><P
>A zero user defined value does not change score.</P
></LI
><LI
><P
>If a site is not represented in a
      <B
CLASS="command"
>UserSiteScore</B
> <ACRONYM
CLASS="acronym"
>SQL</ACRONYM
> query result,
      its score is not changed.
      </P
></LI
></UL
>
    </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN13346"
></A
><H2
>Examples</H2
><DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN13348"
></A
><PRE
CLASS="programlisting"
>&#13;# Give higher scores to certain sites using IDs:
UserSiteScore list1 "SELECT site_id, 255 FROM url WHERE site_id IN (101,210,400)"

# Give higher scores to a certain site using <ACRONYM
CLASS="acronym"
>URL</ACRONYM
> pattens:
UserSiteScore list2 "SELECT site_id, 255 FROM url WHERE url LIKE 'http://mysite/%' LIMIT 1"
    </PRE
><P
></P
></DIV
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN13351"
></A
><H2
>See also</H2
><P
>&#13;      <A
HREF="msearch-cmdref-userscore.html"
>UserScore</A
>,
      <A
HREF="msearch-cmdref-userscorefactor.html"
>UserScoreFactor</A
>,
      <A
HREF="msearch-doingsearch.html#search-params"
>the Section called <I
>Search parameters
    <A
NAME="AEN4282"
></A
></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-userscore.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-userscorefactor.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>UserScore</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"
>UserScoreFactor</TD
></TR
></TABLE
></DIV
><!--#include virtual="body-after.html"--></BODY
></HTML
>