Lines Matching full:search

3  * Script to search in dokuwiki documents
38 ====== DokuWiki Sphinx Search plugin features ======
40 … use the search you need to just enter your search keywords into the searchbox at the top right co…
42 ===== Phrase search (\"\") =====
43 Put double quotes around a set of words to enable phrase search mode. For example:
46 ===== Search within a namespace =====
47 You can add \"@ns\" parameter to limit the search to some namespace. For exapmle:
51 ===== Excluding keywords or namespaces from search =====
52 You can add a minus sign to a keyword or a category name exclude it from search. For example:
60 …age .= "DokuWiki Sphinx Search plugin (version $this->_versionNumber) by [[http://www.ivinco.com/s…
83 if ($ACT != 'search') return; // nothing to do for us
104 * do the search and displays the result
121 …$search = new SphinxSearch($this->getConf('host'), $this->getConf('port'), $this->getConf('index')…
122 $search->setSnippetSize($this->getConf('snippetsize'));
123 $search->setArroundWordsCount($this->getConf('aroundwords'));
124 $search->setTitlePriority($this->getConf('title_priority'));
125 $search->setBodyPriority($this->getConf('body_priority'));
126 $search->setNamespacePriority($this->getConf('namespace_priority'));
127 $search->setPagenamePriority($this->getConf('pagename_priority'));
130 $search->setSearchAllQuery($keywords, $categories);
132 $search->setSearchAllQueryWithCategoryFilter($keywords, $categories);
134 echo 'Your search - <strong>' . $query . '</strong> - did not match any documents.<br>
135 <a href="?do=search&ssplugininfo=1&id=' . $query . '">Search help</a>';
138 $result = $search->search($start, $this->getConf('maxresults'));
139 $this->_search = $search;
141 if ($search->getError()) {
142 echo "Could not connect to Sphinx search engine.";
147 echo 'Your search - <strong>' . $query . '</strong> - did not match any documents.<br/>
148 <a href="?do=search&ssplugininfo=1&id=' . $query . '">Search help</a>';
152 $pagesList = $search->getPages($keywords);
153 $totalFound = $search->getTotalFound();
156 echo 'Your search - <strong>' . $query . '</strong> - did not match any documents.<br/>
157 <a href="?do=search&ssplugininfo=1&id=' . $query . '">Search help</a>';
161 …ript type="text/javascript" src="' . DOKU_URL . 'lib/plugins/sphinxsearch/js/search.js"></script>';
162 echo '<div class="search">';
164 echo '<h1>Pages Containing Search Terms</h1>';
191 … echo '<a class="searchhelp" href="?do=search&ssplugininfo=1&id=' . $query . '">Search help</a>';
203 …wl('', array('do' => 'search', 'id' => $query, 'start' => $prevNum, 'prev' => $prevString), 'false…
214 if ($start + $search->getOffset() < $totalFound) {
215 $next = $start + $search->getOffset();
220 …wl('', array('do' => 'search', 'id' => $query, 'start' => $next, 'prev' => $prevString), 'false', …
228 …'DokuWiki Sphinx Search plugin (version ' . $this->_versionNumber . ') by <a href="http://www.ivin…
310 // don't print the search form if search action has been disabled
311 if (!actionOk('search')) return false;
313 …print '<form action="' . wl() . '" accept-charset="utf-8" class="search" id="dw__search"><div clas…
314 print '<input type="hidden" name="do" value="search" />';
316 if ($ACT == 'search') print 'value="' . htmlspecialchars($QUERY) . '" ';
352 $res = $this->_search->search(0, 10);