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 +10 -0
- package/package.json +1 -1
- package/pkg/lucivy.wasm +0 -0
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
package/pkg/lucivy.wasm
CHANGED
|
Binary file
|