Skip to content

Commit faeecb9

Browse files
Add result document limit to 100000 (Default was 1000)
1 parent ec51e12 commit faeecb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DALLiteDBTools.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function Get-$className {
200200
)
201201
process {
202202
if (`$Text) {
203-
Find-LiteDBDocument -Connection `$Script:DB -Collection $CollectionName -As PSObject | New-$className | Where-Object { `$_.GetFullText().Contains(`$Text) }
203+
Find-LiteDBDocument -Connection `$Script:DB -Collection $CollectionName -Limit 100000 -As PSObject | New-$className | Where-Object { `$_.GetFullText().Contains(`$Text) }
204204
} else {
205205
if (`$$parameterName) {
206206
`$result = Find-LiteDBDocument -Connection `$Script:DB -Collection $CollectionName -ID `$$parameterName -As PSObject | New-$className
@@ -211,7 +211,7 @@ function Get-$className {
211211
`$result
212212
}
213213
} else {
214-
Find-LiteDBDocument -Connection `$Script:DB -Collection $CollectionName -As PSObject | New-$className
214+
Find-LiteDBDocument -Connection `$Script:DB -Collection $CollectionName -Limit 100000 -As PSObject | New-$className
215215
}
216216
}
217217
}

0 commit comments

Comments
 (0)