1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! JenaText full-text SPARQL integration for OxiRS ARQ.
//!
//! Provides the `text:query` property function backed by a tantivy full-text
//! index. Enable with the `text-search` Cargo feature.
//!
//! ## Quick Start
//!
//! ```rust
//! # #[cfg(feature = "text-search")]
//! # {
//! use std::sync::Arc;
//! use oxirs_arq::text_search::{TextSearchIndex, register_text_query};
//! use oxirs_arq::property_functions::PropertyFunctionRegistry;
//!
//! let index = Arc::new(TextSearchIndex::new_in_memory().expect("index"));
//! let registry = PropertyFunctionRegistry::new();
//! register_text_query(®istry, index).expect("register");
//! # }
//! ```
pub use ;
pub use ;
use Arc;
use Result;
use cratePropertyFunctionRegistry;
/// Register the `text:query` property function into `registry` backed by `index`.
///
/// After registration, any SPARQL query containing a `text:query` triple
/// pattern is dispatched to the tantivy index for full-text evaluation.