Fix the added API methods

This commit is contained in:
Ante Pušić 2024-01-11 09:31:22 +01:00
parent 9a3a9d33e3
commit e78c69866f
2 changed files with 3 additions and 3 deletions

View File

@ -332,7 +332,7 @@ inline bool graph_has_text_index(mgp_graph *graph, const char *index_name) {
inline mgp_list *graph_search_text_index(mgp_graph *graph, mgp_memory *memory, const char *index_name,
const char *search_query) {
return MgInvoke<mgp_list *>(graph_search_text_index, graph, memory, index_name, search_query);
return MgInvoke<mgp_list *>(mgp_graph_search_text_index, graph, memory, index_name, search_query);
}
inline mgp_vertices_iterator *graph_iter_vertices(mgp_graph *g, mgp_memory *memory) {

View File

@ -893,12 +893,12 @@ enum mgp_error mgp_graph_get_vertex_by_id(struct mgp_graph *g, struct mgp_vertex
/// Result is non-zero if the index with the given name exists.
/// Current implementation always returns without errors.
enum mgp_error mgp_graph_has_text_index(mgp_graph *graph, const char *index_name, int *result);
enum mgp_error mgp_graph_has_text_index(struct mgp_graph *graph, const char *index_name, int *result);
/// Search the named text index for the given query. The result is a list of the vertices whose text properties match
/// the given query.
/// Return mgp_error::MGP_ERROR_UNABLE_TO_ALLOCATE if unable to allocate search result vertices.
enum mgp_error mgp_graph_search_text_index(mgp_graph *graph, mgp_memory *memory, const char *index_name,
enum mgp_error mgp_graph_search_text_index(struct mgp_graph *graph, struct mgp_memory *memory, const char *index_name,
const char *search_query, struct mgp_list **result);
/// Creates label index for given label.