Gathering detailed insights and metrics for rxdb-search
Gathering detailed insights and metrics for rxdb-search
Gathering detailed insights and metrics for rxdb-search
Gathering detailed insights and metrics for rxdb-search
npm install rxdb-search
Typescript
Module System
Node Version
NPM Version
TypeScript (99.65%)
JavaScript (0.35%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
16 Stars
27 Commits
1 Forks
2 Watchers
2 Branches
1 Contributors
Updated on Apr 02, 2025
Latest Version
1.1.1
Package Id
rxdb-search@1.1.1
Unpacked Size
8.02 kB
Size
3.49 kB
File Count
4
NPM Version
6.14.8
Node Version
12.20.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
23
Minimal full text search implementation plugin for RxDB based on search-index.
The on remove
test still fails, meaning the si.DELETE
function is mishaving - I'm clueless on how to fix it right now so please expect this to work in a further version!
1npm i rxdb-search search-index --save
Default usage:
1import { addRxPlugin } from 'rxdb' 2import rxdbSearch from 'rxdb-search' 3 4addRxPlugin(rxdbSearch) 5 6... 7 8 9const { RESULT, RESULT_LENGTH } = await collection.search(query: string, siQUERYoptions ?: {}) 10console.log(RESULT) 11 12/* 13`collection.search` is just a shortcut / an alias to si.QUERY using just the AND operator, that accepts a string as the `query` parameter. 14 15`collection.si` can also be accessed for the complete [search-index API](https://github.com/fergiemcdowall/search-index/tree/master/docs) on the collection. 16*/ 17 18const { QUERY } = collection.si
Please consult the search-index API for the full operatoins you can do on the collection.
For existing datasets, you can index them by using:
1await collection.index()
This is a costly operation and it should be done only once. Indexes add themselves up afterwards when new documents are added.
Or index just some of them by providing an ids array argument:
1const ids = ['id1', 'id2'] 2await collection.index(ids)
If you're using .bulkInsert(), you may need to "manually" index the inserted documents (the .postInsert hook is not triggered as of now):
1const { success, error } = await collection.bulkInsert(data) 2 3// Get ids, 'success' is an array of maps. 4const ids = success.map((undefined, i) => success[i].get('_id')) 5await collection.index(ids)
More to come soon! Stay tuned!
Suggestions, feedback or PRs are welcome!
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More