Function test_index_update

Source
pub fn test_index_update<T>(graph: &mut T)
where T: Graph<Vertex = Vertex, Edge = Edge> + SupportsVertexFullTextIndex,
Expand description

Tests that a vertex’s indexed field can be updated and that the graph’s search functionality reflects this change.

This function creates a vertex, adds it to the graph, updates the indexed field of the vertex, and then performs searches to verify that:

  • The old value of the indexed field is no longer present in the graph
  • The new value of the indexed field is correctly associated with the updated vertex