add a default value for search.limit to be consistent with python sdk (#1191)

Changed the default value for search.limit to be 10
This commit is contained in:
QianZhu
2024-04-05 16:34:50 -07:00
committed by Weston Pace
parent a900bc0827
commit 871500db70
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -124,9 +124,9 @@ describe('LanceDB client', function () {
const uri = await createTestDB(2, 100)
const con = await lancedb.connect(uri)
const table = (await con.openTable('vectors')) as LocalTable
let results = await table.filter('id % 2 = 0').execute()
let results = await table.filter('id % 2 = 0').limit(100).execute()
assertResults(results)
results = await table.where('id % 2 = 0').execute()
results = await table.where('id % 2 = 0').limit(100).execute()
assertResults(results)
// Should reject a bad filter