Skip to main content

node_contains_text

Function node_contains_text 

Source
pub fn node_contains_text(node: &Node, text: &str) -> bool
Expand description

Full-text over the document’s rendered JSON, case-insensitively.

Moved here from nql, unchanged, and now the only definition. It searches the SERIALISED document, so it matches field names as well as values — long-standing behaviour, preserved deliberately rather than quietly improved, because changing what SEARCH matches is a semantic change and this module’s job is to not be one.