8000 Added a new endpoint for SmartSearch BFS. (Enterprise only) · rexalways/arangodb@5d1abae · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d1abae

Browse files
committed
Added a new endpoint for SmartSearch BFS. (Enterprise only)
1 parent 2a5cdf7 commit 5d1abae

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

arangod/Cluster/TraverserEngine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,3 +338,7 @@ TraverserEngine::~TraverserEngine() {
338338
void TraverserEngine::smartSearch(VPackSlice, VPackBuilder&) {
339339
THROW_ARANGO_EXCEPTION(TRI_ERROR_ONLY_ENTERPRISE);
340340
}
341+
342+
void TraverserEngine::smartSearchBFS(VPackSlice, VPackBuilder&) {
343+
THROW_ARANGO_EXCEPTION(TRI_ERROR_ONLY_ENTERPRISE);
344+
}

arangod/Cluster/TraverserEngine.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ class BaseTraverserEngine {
7575
virtual void smartSearch(arangodb::velocypack::Slice,
7676
arangodb::velocypack::Builder&) = 0;
7777

78+
virtual void smartSearchBFS(arangodb::velocypack::Slice,
79+
arangodb::velocypack::Builder&) = 0;
80+
7881
bool lockCollection(std::string const&);
7982

8083
std::shared_ptr<TransactionContext> context() const;
@@ -103,7 +106,10 @@ class TraverserEngine : public BaseTraverserEngine {
103106
~TraverserEngine();
104107

105108
void smartSearch(arangodb::velocypack::Slice,
106-
arangodb::velocypack::Builder&);
109+
arangodb::velocypack::Builder&) override;
110+
111+
void smartSearchBFS(arangodb::velocypack::Slice,
112+
arangodb::velocypack::Builder&) override;
107113
};
108114

109115
} // namespace traverser

arangod/InternalRestHandler/InternalRestTraverserHandler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ void InternalRestTraverserHandler::queryEngine() {
224224
}
225225
} else if (option == "smartSearch") {
226226
engine->smartSearch(body, result);
227+
} else if (option == "smartSearchBFS") {
228+
engine->smartSearchBFS(body, result);
227229
} else {
228230
// PATH Info wrong other error
229231
generateError(

0 commit comments

Comments
 (0)
0