| /dokuwiki/_test/tests/Search/Collection/ |
| H A D | FrequencyCollectionTest.php | 204 $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 D | DirectCollectionTest.php | 151 $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 D | LookupCollectionTest.php | 305 $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 D | LegacyIndexer.php | 311 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 D | DirectCollection.php | 126 public function histogram(int $min = 1, int $max = 0, int $minlen = 3): array function in dokuwiki\\Search\\Collection\\DirectCollection
|
| H A D | AbstractCollection.php | 268 public function histogram(int $min = 1, int $max = 0, int $minlen = 3): array function in dokuwiki\\Search\\Collection\\AbstractCollection
|