(key: &str)
| 892 | /// Decode a KG edge key into (from_id, to_id, kind). |
| 893 | #[inline] |
| 894 | pub fn decode_edge_key(key: &str) -> Option<(&str, &str, &str)> { |
| 895 | let mut parts = key.splitn(3, '\0'); |
| 896 | let from_id = parts.next()?; |
| 897 | let to_id = parts.next()?; |
| 898 | let kind = parts.next()?; |
| 899 | Some((from_id, to_id, kind)) |
| 900 | } |
| 901 | |
| 902 | /// Stop words filtered from FTS queries and indexing. |
| 903 | /// |