Lines Matching defs:result
385 $result = $this->deletePageNoLock($page);
389 return $result;
616 $result = [];
617 $wids = $this->getIndexWords($tokens, $result);
630 // merge found pages into final result array
632 foreach ($result as $word => $res) {
720 // initialize the result so it won't be null
721 $result = [];
723 $result[$val] = [];
733 $result[$val][] = $page;
745 $result[$val] = [...$result[$val], ...$pages];
749 if (!is_array($value)) $result = $result[$value];
750 return $result;
758 * The $result parameter can be used to merge the index locations with
762 * @param array $result Set to word => array("length*id" ...)
767 protected function getIndexWords(&$words, &$result)
773 $result[$word] = [];
821 $result[$w[0]][] = "$ixlen*$wid";
832 $result[$w[0]][] = "$ixlen*$wid";
891 $result = [];
898 $result[$val] = $cnt;
913 $result[$words[$wid]] = $freq;
927 $result[$words[$wid]] = $freq;
933 arsort($result);
934 return $result;
1212 $result = [];
1213 if ($line == '') return $result;
1223 $result[$key] = $cnt;
1225 return $result;