lucivy-wasm 0.4.0 → 0.4.1

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
@@ -93,6 +93,16 @@ const results2 = await index.search(
93
93
  { highlights: true }
94
94
  );
95
95
 
96
+ // contains_split — each word becomes a separate contains query, OR'd together
97
+ const results5 = await index.search(
98
+ { type: 'contains_split', field: 'body', value: 'rust safety' }
99
+ );
100
+
101
+ // contains_split with fuzzy distance — each word gets fuzzy tolerance
102
+ const results6 = await index.search(
103
+ { type: 'contains_split', field: 'body', value: 'memry safty', distance: 1 }
104
+ );
105
+
96
106
  // Return stored fields with results
97
107
  const results3 = await index.search('programming', { fields: true });
98
108
  for (const r of results3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucivy-wasm",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "Fast BM25 full-text search for browsers — WASM build of Lucivy with threading, OPFS persistence, and LUCE snapshot support",
6
6
  "license": "MIT",
package/pkg/lucivy.wasm CHANGED
Binary file