Lines Matching refs:wid
58 foreach ($words[$wlen] as $wid => $freq) {
59 $idx = ($wid < count($index)) ? $index[$wid] : '';
60 $index[$wid] = $this->updateTuple($idx, $pid, $freq);
61 $pagewords[] = "$wlen*$wid";
78 [$wlen, $wid] = explode('*', $word);
79 $wid = (int)$wid;
80 $upwords[$wlen][] = $wid;
85 foreach ($widx as $wid) {
86 $index[$wid] = $this->updateTuple($index[$wid], $pid, 0);
135 $wid = array_search($word, $word_idx, true);
136 if ($wid === false) {
137 $wid = count($word_idx);
143 $index[$wlen][$wid] = $freq;
417 [$wlen, $wid] = explode('*', $word);
418 $wid = (int)$wid;
419 $upwords[$wlen][] = $wid;
424 foreach ($widx as $wid) {
425 $index[$wid] = $this->updateTuple($index[$wid], $pid, 0);
634 foreach ($res as $wid) {
636 // and thus $docs[$wid] hasn't been set.
637 if (!isset($docs[$wid])) continue;
638 $hits = &$docs[$wid];
817 $wid = array_search($xword, $word_idx, true);
818 if ($wid !== false) {
819 $wids[$ixlen][] = $wid;
821 $result[$w[0]][] = "$ixlen*$wid";
830 foreach (array_keys(preg_grep($w[1], $word_idx)) as $wid) {
831 $wids[$ixlen][] = $wid;
832 $result[$w[0]][] = "$ixlen*$wid";
904 foreach ($index as $wid => $line) {
907 $val_idx[$wid] = $freq;
911 foreach ($val_idx as $wid => $freq) {
912 if (strlen($words[$wid]) >= $minlen)
913 $result[$words[$wid]] = $freq;
922 foreach ($index as $wid => $line) {
927 $result[$words[$wid]] = $freq;