Lines Matching full:if
19 if (!defined('IDX_MINWORDLENGTH')) define('IDX_MINWORDLENGTH', 2);
38 if ($indexer_version == null) {
65 // If left alone, all chinese "words" will get put into w3.idx
67 if (preg_match_all('/[\xE2-\xEF]/', $w, $leadbytes)) {
84 if (!isset($Indexer)) {
100 if (is_null($stopwords)) {
103 if (file_exists($swfile)) {
127 // check if page was deleted but is still in the index
128 if (!page_exists($page)) {
129 if (!file_exists($idxtag)) {
130 if ($verbose) echo "Indexer: $page does not exist, ignoring" . DOKU_LF;
135 if ($result === "locked") {
136 if ($verbose) echo "Indexer: locked" . DOKU_LF;
143 // check if indexing needed
144 if (!$force && file_exists($idxtag)) {
145 if (trim(io_readFile($idxtag)) == idx_get_version()) {
147 if ($last > @filemtime(wikiFN($page))) {
148 if ($verbose) echo "Indexer: index for $page up to date" . DOKU_LF;
155 if ($indexenabled === false) {
157 if (file_exists($idxtag)) {
160 if ($result === "locked") {
161 if ($verbose) echo "Indexer: locked" . DOKU_LF;
166 if ($verbose) echo "Indexer: index disabled for $page" . DOKU_LF;
172 if ($pid === false) {
173 if ($verbose) echo "Indexer: getting the PID failed for $page" . DOKU_LF;
179 …if (($references = p_get_metadata($page, 'relation references', METADATA_RENDER_UNLIMITED)) !== nu…
183 if (($media = p_get_metadata($page, 'relation media', METADATA_RENDER_UNLIMITED)) !== null)
189 if ($evt->advise_before()) $data['body'] = $data['body'] . " " . rawWiki($page);
195 if ($result === "locked") {
196 if ($verbose) echo "Indexer: locked" . DOKU_LF;
200 if ($result) {
202 if ($result === "locked") {
203 if ($verbose) echo "Indexer: locked" . DOKU_LF;
208 if ($result)
210 if ($verbose) {
252 * Read the list of words in an index (if it exists).
264 if (!file_exists($fn)) return [];
282 if ($conf['readdircache'] == 0) {
286 if (
290 if (
304 if ($conf['readdircache'] == 0 || $docache) {
306 if ($dir === false)
310 if (str_starts_with($f, 'i') && str_ends_with($f, '.idx')) {
312 if (is_numeric($i))
319 if ($docache) {
345 if (is_array($filter)) {
346 // testing if index files exist only
349 if (file_exists($path . $key . '.idx'))
356 if ((int)$length >= (int)$filter)