mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
111 lines
4.0 KiB
HTML
111 lines
4.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Perform search</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.udm-find" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">udm_find</h1>
|
|
<p class="verinfo">(PHP 4 >= 4.0.5, PHP 5 < 5.1.0, PECL mnogosearch >= 1.0.0)</p><p class="refpurpose"><span class="refname">udm_find</span> — <span class="dc-title">Perform search</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.udm-find-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>udm_find</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$agent</code></span>
|
|
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
|
|
) : <span class="type">resource</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Performs a search.
|
|
</p>
|
|
<p class="para">
|
|
The search itself. The first argument - session, the next one -
|
|
query itself. To find something just type words you want to find
|
|
and press SUBMIT button. For example, "mysql odbc". You should
|
|
not use quotes " in query, they are written here only to divide a
|
|
query from other text. mnoGoSearch will find all documents that
|
|
contain word "mysql" and/or word "odbc". Best documents having
|
|
bigger weights will be displayed first. If you use search mode
|
|
ALL, search will return documents that contain both (or more)
|
|
words you entered. In case you use mode ANY, the search will
|
|
return list of documents that contain any of the words you
|
|
entered. If you want more advanced results you may use query
|
|
language. You should select "bool" match mode in the search
|
|
from.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.udm-find-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">agent</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
A link to Agent, received after call to
|
|
<span class="function"><a href="udm_alloc_agent.html" class="function">udm_alloc_agent()</a></span>.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">query</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
mnoGoSearch understands the following boolean operators:
|
|
</p>
|
|
<p class="para">
|
|
& - logical AND. For example, "mysql &
|
|
odbc". mnoGoSearch will find any URLs that contain both
|
|
"mysql" and "odbc".
|
|
</p>
|
|
<p class="para">
|
|
| - logical OR. For example "mysql|odbc". mnoGoSearch
|
|
will find any URLs, that contain word "mysql" or word
|
|
"odbc".
|
|
</p>
|
|
<p class="para">
|
|
~ - logical NOT. For example "mysql & ~odbc".
|
|
mnoGoSearch will find URLs that contain word "mysql"
|
|
and do not contain word "odbc" at the same time. Note
|
|
that ~ just excludes given word from results. Query
|
|
"~odbc" will find nothing!
|
|
</p>
|
|
<p class="para">
|
|
() - group command to compose more complex queries. For example
|
|
"(mysql | msql) & ~postgres". Query language is
|
|
simple and powerful at the same time. Just consider query as
|
|
usual boolean expression.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.udm-find-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Returns a result link identifier on success 或者在失败时返回 <strong><code>FALSE</code></strong>.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |