Lines Matching +full:page -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)
23 * Adds the contents of a page to the fulltext index
25 * The added text replaces previous words for the same page.
26 * An empty value erases the page.
28 * @param string $page a page name
29 * @param string $text the body of the page
35 public function addPageWords($page, $text) argument
41 $pid = $this->getPIDNoLock($page);
48 // get word usage in page
103 * Split the words in a page and add them to the index.
105 * @param string $text content of the page
156 * Adding new keys does not remove other keys for the page.
161 * @param string $page a page name
169 public function addMetaKeys($page, $key, $value = null) argument
182 $pid = $this->getPIDNoLock($page);
266 …* Rename a page in the search index without changing the indexed content. This function doesn't ch…
267 …ew name exists in the filesystem. It returns an error if the old page isn't in the page list of the
268 * indexer and it deletes all previously indexed content of the new page.
270 * @param string $oldpage The old page name
271 * @param string $newpage The new page name
272 …* @return string|bool If the page was successfully renamed, can be a message in the case of an err…
283 return 'page is not in index';
288 // make sure the page is not in the index anymore
299 if (!$this->saveIndex('page', '', $pages)) {
371 * Remove a page from the index
375 * @param string $page a page name
380 public function deletePage($page) argument
385 $result = $this->deletePageNoLock($page);
393 …* Remove a page from the index without locking the index, only use this function if the index is a…
397 * @param string $page a page name
402 protected function deletePageNoLock($page) argument
405 $pid = $this->getPIDNoLock($page);
462 @unlink($conf['indexdir'] . '/page.idx');
544 * Get the numeric PID of a page
546 * @param string $page The page to get the PID for
547 * @return bool|int The page id on success, false on error
549 public function getPID($page) argument
552 if (isset($this->pidCache[$page])) return $this->pidCache[$page];
558 $pid = $this->getPIDNoLock($page);
569 * Get the numeric PID of a page without locking the index.
572 * @param string $page The page to get the PID for
573 * @return bool|int The page id on success, false on error
575 protected function getPIDNoLock($page) argument
578 if (isset($this->pidCache[$page])) return $this->pidCache[$page];
579 $pid = $this->addIndexKey('page', '', $page);
583 $this->pidCache[$page] = $pid;
588 * Get the page id of a numeric PID
590 * @param int $pid The PID to get the page id for
591 * @return string The page id
595 return $this->getIndexKey('page', '', $pid);
605 * in the returned list is an array with the page names as keys and the
606 * number of times that token appears on the page as value.
609 * @return array list of page names with usage counts
620 $page_idx = $this->getIndex('page', '');
664 * @return array lists with page names, keys are query values if $value is array
726 $page_idx = $this->getIndex('page', '');
731 $page = $page_idx[$pid];
733 $result[$val][] = $page;
845 * @return array list of page names
851 $page_idx = $this->getIndex('page', '');