Skip to content

Commit

Permalink
GO-4472 try to use api
Browse files Browse the repository at this point in the history
  • Loading branch information
fat-fellow committed Nov 26, 2024
1 parent f600bf4 commit 326ea2e
Show file tree
Hide file tree
Showing 16 changed files with 680 additions and 427 deletions.
10 changes: 5 additions & 5 deletions bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ struct SearchResult *context_search(struct TantivyContext *context_ptr,
uintptr_t docs_limit,
bool with_highlights);

struct SearchResult *context_search2(struct TantivyContext *context_ptr,
const char *query_ptr,
char **error_buffer,
uintptr_t docs_limit,
bool with_highlights);
struct SearchResult *context_search_json(struct TantivyContext *context_ptr,
const char *query_ptr,
char **error_buffer,
uintptr_t docs_limit,
bool with_highlights);

void context_free(struct TantivyContext *context_ptr);

Expand Down
1 change: 1 addition & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ unicode-segmentation = "1.11.0"
logcall = "0.1"
lazy_static = "1.5.0"
tantivy-jieba = { version = "0.11.0", optional = true }
rand = "0.8.5"

[features]
default = ["jieba"]
Expand Down
2 changes: 1 addition & 1 deletion rust/src/c_util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub use self::util::add_and_consume_documents;
pub use self::util::delete_docs;
pub use self::util::create_context_with_schema;
pub use self::util::search;
pub use self::util::search2;
pub use self::util::search_json;
pub use self::util::drop_any;
pub use self::util::get_doc;
pub use self::util::add_field;
Loading

0 comments on commit 326ea2e

Please sign in to comment.