Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > 059f7a4aaf6fd1abf9c488af664ae035 > files > 351

mnogosearch-3.3.10-5.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Using mnoGoSearch
   as an embedded search library
  
  </TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="mnoGoSearch 3.3.10 reference manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Miscellaneous"
HREF="msearch-misc.html"><LINK
REL="PREVIOUS"
TITLE="Miscellaneous"
HREF="msearch-misc.html"><LINK
REL="NEXT"
TITLE="MySQL fulltext parser plugin"
HREF="msearch-udmstemmer.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="sect1"
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.10 reference manual: Full-featured search engine software</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="msearch-misc.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 12. Miscellaneous</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="msearch-udmstemmer.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="lib"
>Using <SPAN
CLASS="application"
>mnoGoSearch</SPAN
>
   as an embedded search library
  <A
NAME="AEN6793"
></A
></A
></H1
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="libmnogosearch"
><SPAN
CLASS="application"
>libmnogosearch</SPAN
></A
></H2
><P
>Starting with the version 3.0.7,
    <SPAN
CLASS="application"
>mnoGoSearch</SPAN
> is distributed with
    C API library <TT
CLASS="literal"
>libmnogosearch</TT
> making it
    possible to embed search functionality into your own applications.
    <SPAN
CLASS="application"
>mnoGoSearch</SPAN
> libraries and header
    files are installed in the <TT
CLASS="filename"
>/lib</TT
> and <TT
CLASS="filename"
>/include</TT
>
    directories of the <SPAN
CLASS="application"
>mnoGoSearch</SPAN
> installation.
    Every C source file of your application that uses <TT
CLASS="literal"
>libmnogosearch</TT
>
    functions should include the <TT
CLASS="filename"
>udmsearch.h</TT
> header file.
    </P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="api"
><SPAN
CLASS="application"
>mnoGoSearch</SPAN
> API</A
></H2
><P
>The detailed description of the <SPAN
CLASS="application"
>mnoGoSearch</SPAN
>
     C API is given in <A
HREF="msearch-c-api.html"
>Reference II, <I
><SPAN
CLASS="application"
>mnoGoSearch</SPAN
> C API function reference</I
></A
>. You can also use
     <TT
CLASS="filename"
>search.c</TT
> as an examples of an application 
     using <TT
CLASS="literal"
>libmnogosearch</TT
> functions calls.</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="lib-udmconf"
>The <SPAN
CLASS="application"
>udm-config</SPAN
> script</A
></H2
><P
><TT
CLASS="literal"
>libmnogosearch</TT
> may require
    some dependency libraries, for example <TT
CLASS="literal"
>libmysqlclient</TT
>.
    You can find the <SPAN
CLASS="application"
>udm-config</SPAN
> script in the
    <TT
CLASS="filename"
>/bin</TT
> directory of your <SPAN
CLASS="application"
>mnoGoSearch</SPAN
>
    installation. This script helps to take the dependencies into account.
    </P
><P
>&#13;    <SPAN
CLASS="application"
>udm-config</SPAN
> understands a number command line options.
    By default <SPAN
CLASS="application"
>udm-config</SPAN
> prints the list of all
    available options:
    </P
><P
>&#13;<PRE
CLASS="programlisting"
>&#13;Usage: ./udm-config [OPTIONS]
Options:
        [--version]
        [--libs]
        [--cflags]
</PRE
>
    </P
><P
>When executed with the option <CODE
CLASS="option"
>--libs</CODE
>
    <SPAN
CLASS="application"
>udm-config</SPAN
> outputs all linker flags
    needed for <TT
CLASS="literal"
>libmnogosearch</TT
> dependencies, for example:
<PRE
CLASS="programlisting"
>&#13;# ./udm-config --libs
-lm -L/usr/local/mysql/lib/mysql -lmysqlclient \
-L/usr/local/mnogosearch/lib -lmnogosearch
</PRE
>
    </P
><P
>So you can insert <KBD
CLASS="userinput"
>udm-config --libs</KBD
> into the CC compiler command line:
    <PRE
CLASS="programlisting"
>&#13;cc myprog.c -o myprog `udm-config --libs`
</PRE
>
    </P
></DIV
></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-misc.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-udmstemmer.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Miscellaneous</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="msearch-misc.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><SPAN
CLASS="application"
>MySQL</SPAN
> fulltext parser plugin</TD
></TR
></TABLE
></DIV
><!--#include virtual="body-after.html"--></BODY
></HTML
>