Fix minor errors

This commit is contained in:
Ante Pušić 2024-01-05 13:32:45 +01:00
parent 9d06d1b5db
commit 102bf1df5e
2 changed files with 13 additions and 4 deletions

View File

@ -10,6 +10,8 @@
// licenses/APL.txt.
#include <mgp.hpp>
// #include "query/procedure/mg_procedure_impl.hpp"
#include "utils/memcxx.hpp"
namespace TextSearch {
constexpr std::string_view kProcedureSearch = "search";
@ -29,9 +31,15 @@ void Search(mgp_list *args, mgp_graph *memgraph_graph, mgp_result *result, mgp_m
// TODO antepusic:
// 1. Match the label to the appropriate text index
// auto label_id = memgraph_graph->impl->NameToLabel(label);
// 2. Run text search of that index
// * Add metadata to the return fields before search
// text_index.search(label, search_string);
// 3. Get the graph elements from their IDs in the search results
// 4. Return records (one per element)
}

View File

@ -1364,20 +1364,21 @@ std::vector<std::tuple<PropertyId, PropertyValue, PropertyValue>> PropertyStore:
}
template bool PropertyStore::DoInitProperties<std::map<PropertyId, PropertyValue>>(
const std::map<PropertyId, PropertyValue> &);
const std::map<PropertyId, PropertyValue> &, bool external = false, std::optional<Gid> gid = std::nullopt);
template bool PropertyStore::DoInitProperties<std::vector<std::pair<PropertyId, PropertyValue>>>(
const std::vector<std::pair<PropertyId, PropertyValue>> &);
const std::vector<std::pair<PropertyId, PropertyValue>> &, bool external = false,
std::optional<Gid> gid = std::nullopt);
bool PropertyStore::InitProperties(const std::map<storage::PropertyId, storage::PropertyValue> &properties,
bool external, std::optional<Gid> gid) {
return DoInitProperties(properties, external, node_id);
return DoInitProperties(properties, external, gid);
}
bool PropertyStore::InitProperties(std::vector<std::pair<storage::PropertyId, storage::PropertyValue>> properties,
bool external, std::optional<Gid> gid) {
std::sort(properties.begin(), properties.end());
return DoInitProperties(properties, external, node_id);
return DoInitProperties(properties, external, gid);
}
bool PropertyStore::ClearProperties(bool external, std::optional<Gid> gid) {