lucivy 0.2.0 → 0.2.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
@@ -95,6 +95,9 @@ index.search({ type: 'contains', field: 'body', value: 'program.*language', rege
95
95
  ```javascript
96
96
  // "rust safety" → contains("rust") OR contains("safety") on body
97
97
  index.search({ type: 'contains_split', field: 'body', value: 'rust safety' });
98
+
99
+ // With fuzzy distance — each word gets fuzzy tolerance
100
+ index.search({ type: 'contains_split', field: 'body', value: 'memry safty', distance: 1 });
98
101
  ```
99
102
 
100
103
  #### boolean — combine queries with must / should / must_not
package/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export interface SearchResult {
7
7
  docId: number
8
8
  score: number
9
9
  highlights?: Record<string, Array<Array<number>>>
10
+ fields?: Record<string, string>
10
11
  }
11
12
  export interface FieldDef {
12
13
  name: string
@@ -19,6 +20,7 @@ export interface SearchOptions {
19
20
  limit?: number
20
21
  highlights?: boolean
21
22
  allowedIds?: Array<number>
23
+ fields?: boolean
22
24
  }
23
25
  export declare class Index {
24
26
  /** Create a new index at the given path. */
package/lucivy.node CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucivy",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
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",