Home
last modified time | relevance | path

Searched refs:histogram (Results 1 – 6 of 6) sorted by relevance

/dokuwiki/_test/tests/Search/Collection/
H A DFrequencyCollectionTest.php204 $this->assertSame(['apple' => 4, 'kiwi' => 3, 'fig' => 1], $index->histogram(1, 0, 3));
205 … $this->assertSame(['apple' => 4, 'kiwi' => 3], $index->histogram(1, 0, 4), 'minlen excludes fig');
206 $this->assertSame(['apple' => 4, 'kiwi' => 3], $index->histogram(2, 0, 3), 'min filter');
207 … $this->assertSame(['kiwi' => 3, 'fig' => 1], $index->histogram(1, 3, 3), 'max excludes apple');
210 $this->assertSame([], $empty->histogram());
H A DDirectCollectionTest.php151 $this->assertSame(['Hello World' => 2, 'Other Title' => 1], $index->histogram(1, 0, 3));
152 $this->assertSame(['Hello World' => 2], $index->histogram(2, 0, 3), 'min filter');
154 … $this->assertSame([], (new MockDirectCollection('histe_entity', 'histe_token'))->histogram());
H A DLookupCollectionTest.php305 $this->assertSame(['news' => 3, 'wiki' => 1, 'tech' => 1], $index->histogram(1, 0, 3));
306 $this->assertSame(['news' => 3], $index->histogram(2, 0, 3), 'min filter');
307 $this->assertSame(['wiki' => 1, 'tech' => 1], $index->histogram(1, 2, 3), 'max filter');
308 $this->assertArrayHasKey('ab', $index->histogram(1, 0, 2), 'minlen 2 keeps short token');
311 $this->assertSame([], $empty->histogram());
/dokuwiki/inc/Search/
H A DLegacyIndexer.php311 public function histogram($min = 1, $max = 0, $minlen = 3, $key = null) function in dokuwiki\\Search\\LegacyIndexer
321 return $collection->histogram((int)$min, (int)$max, (int)$minlen);
/dokuwiki/inc/Search/Collection/
H A DDirectCollection.php126 public function histogram(int $min = 1, int $max = 0, int $minlen = 3): array function in dokuwiki\\Search\\Collection\\DirectCollection
H A DAbstractCollection.php268 public function histogram(int $min = 1, int $max = 0, int $minlen = 3): array function in dokuwiki\\Search\\Collection\\AbstractCollection