Lines Matching refs:PageSet
26 /** @var PageSet|null lazy-loaded universe of all indexed pages */
27 protected ?PageSet $allPages = null;
73 $stack[] = new PageSet($this->terms[$word]->getEntityFrequencies());
83 $candidates = end($stack) ?: new PageSet();
112 $result = array_pop($stack) ?? new PageSet();
132 if ($left instanceof PageSet && $right instanceof NegatedEntry) {
135 if ($left instanceof NegatedEntry && $right instanceof PageSet) {
140 if ($left instanceof PageSet && $right instanceof NamespacePredicate) {
143 if ($left instanceof NamespacePredicate && $right instanceof PageSet) {
148 if ($left instanceof PageSet && $right instanceof PageSet) {
168 if ($left instanceof PageSet && $right instanceof PageSet) {
182 * @param PageSet $pages the positive page set
184 * @return PageSet
186 protected function subtractNegated(PageSet $pages, NegatedEntry $negated): PageSet
209 * @param PageSet $candidates pages to check (typically the AND'd word results)
210 * @return PageSet pages where the phrase was found, with original scores preserved
212 protected function matchPhrase(string $phrase, PageSet $candidates): PageSet
233 return new PageSet($matched);
254 * @return PageSet
256 protected function materialize(StackEntry $entry): PageSet
258 if ($entry instanceof PageSet) {
270 return new PageSet();
276 * @return PageSet all pages with score 0
278 protected function getAllPages(): PageSet
280 if (!$this->allPages instanceof PageSet) {
282 $this->allPages = new PageSet(array_fill_keys($pages, 0));