(key: &str)
| 624 | /// Decode a KG edge key into (from_id, to_id, kind). |
| 625 | #[inline] |
| 626 | pub fn decode_edge_key(key: &str) -> Option<(&str, &str, &str)> { |
| 627 | let mut parts = key.splitn(3, '\0'); |
| 628 | let from_id = parts.next()?; |
| 629 | let to_id = parts.next()?; |
| 630 | let kind = parts.next()?; |
| 631 | Some((from_id, to_id, kind)) |
| 632 | } |
| 633 | |
| 634 | /// Stop words filtered from FTS queries and indexing. |
| 635 | /// |