Skip to main content

document_for

Function document_for 

Source
pub fn document_for(row: &Value, fields: &[&str]) -> Map<String, Value>
Expand description

Project a stored row to the document to index: just the resource’s declared search_fields (plus nothing else — the id is carried separately). Missing fields are simply absent.