lucivy 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -64,6 +64,12 @@ let results = index.search('rust async programming');
64
64
 
65
65
  // Options
66
66
  results = index.search('rust', { limit: 20, highlights: true, allowedIds: [1, 3] });
67
+
68
+ // Retrieve stored field values with results
69
+ results = index.search('rust', { fields: true });
70
+ for (const r of results) {
71
+ console.log(r.docId, r.fields.title, r.fields.body);
72
+ }
67
73
  ```
68
74
 
69
75
  #### contains — substring, fuzzy, regex (cross-token)
package/lucivy.node CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucivy",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Fast BM25 full-text search with substring matching, fuzzy search, and regex — powered by Rust",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",