Skip to content

Commit c8cfa91

Browse files
authored
Merge pull request #308 from razorcreations/master
Added maxDocs config option
2 parents e1ca158 + 89a6267 commit c8cfa91

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ In your `config/scout.php` add:
7171
],
7272
'asYouType' => false,
7373
'searchBoolean' => env('TNTSEARCH_BOOLEAN', false),
74+
'maxDocs' => env('TNTSEARCH_MAX_DOCS', 500),
7475
],
7576
```
7677
To prevent your search indexes being commited to your project repository,

src/TNTSearchScoutServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function boot()
2525

2626
$tnt->loadConfig($config);
2727
$tnt->setDatabaseHandle(app('db')->connection()->getPdo());
28+
$tnt->maxDocs = config('scout.tntsearch.maxDocs', 500);
2829

2930
$this->setFuzziness($tnt);
3031
$this->setAsYouType($tnt);

0 commit comments

Comments
 (0)