c4query_fullTextMatched

Function c4query_fullTextMatched 

Source
pub unsafe extern "C" fn c4query_fullTextMatched(
    query: *mut C4Query,
    term: *const C4FullTextMatch,
    outError: *mut C4Error,
) -> C4StringResult
Expand description

Given a C4FullTextMatch from the enumerator, returns the entire text of the property that was matched. (The result depends only on the term’s dataSource and property fields, so if you get multiple matches of the same property in the same document, you can skip redundant calls with the same values.) To find the actual word that was matched, use the term’s start and length fields to get a substring of the returned (UTF-8) string.