Skip to content

Commit

Permalink
Remove order by in cypher search query (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcginnes authored Aug 1, 2024
1 parent 79aa7f0 commit 0a59dda
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
3 changes: 2 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ a more pleasant experience, especially for users with larger databases.
([#477](https://github.com/aws/graph-explorer/pull/477))
- **Improved** search using openCypher which will now execute a single request
when searching across all labels
([#493](https://github.com/aws/graph-explorer/pull/493))
([#493](https://github.com/aws/graph-explorer/pull/493),
[#532](https://github.com/aws/graph-explorer/pull/532))
- **Improved** error messages for node expansion
([#502](https://github.com/aws/graph-explorer/pull/502))
- **Improved** Gremlin schema sync performance on larger databases, thanks to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
normalize(`
MATCH (v:\`airport\`)
RETURN v AS object
ORDER BY id(v)
`)
);
});
Expand All @@ -26,7 +25,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
MATCH (v)
WHERE (v:\`airport\` OR v:\`country\`)
RETURN v AS object
ORDER BY id(v)
`)
);
});
Expand All @@ -42,7 +40,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
normalize(`
MATCH (v:\`airport\`)
RETURN v AS object
ORDER BY id(v)
SKIP 10 LIMIT 20
`)
);
Expand All @@ -62,7 +59,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
WHERE (v:\`airport\` OR v:\`country\`)
AND (v.city CONTAINS "JFK" OR v.code CONTAINS "JFK")
RETURN v AS object
ORDER BY id(v)
`)
);
});
Expand All @@ -80,7 +76,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
MATCH (v:\`airport\`)
WHERE (v.city CONTAINS "JFK" OR v.code CONTAINS "JFK")
RETURN v AS object
ORDER BY id(v)
`)
);
});
Expand All @@ -98,7 +93,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
MATCH (v:\`airport\`)
WHERE (v.city = "JFK" OR v.code = "JFK")
RETURN v AS object
ORDER BY id(v)
`)
);
});
Expand All @@ -117,7 +111,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
MATCH (v:\`airport\`)
WHERE (id(v) = "JFK")
RETURN v AS object
ORDER BY id(v)
`)
);
});
Expand All @@ -136,7 +129,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
MATCH (v:\`airport\`)
WHERE (toString(id(v)) CONTAINS "JFK")
RETURN v AS object
ORDER BY id(v)
`)
);
});
Expand All @@ -154,7 +146,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
MATCH (v:\`airport\`)
WHERE (toString(id(v)) CONTAINS "JFK" OR v.city CONTAINS "JFK" OR v.code CONTAINS "JFK")
RETURN v AS object
ORDER BY id(v)
`)
);
});
Expand All @@ -176,7 +167,6 @@ describe("OpenCypher > keywordSearchTemplate", () => {
WHERE (v:\`airport\` OR v:\`country\`)
AND (toString(id(v)) CONTAINS "JFK" OR v.city CONTAINS "JFK" OR v.code CONTAINS "JFK")
RETURN v AS object
ORDER BY id(v)
SKIP 25 LIMIT 50
`)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ const keywordSearchTemplate = ({
MATCH (${vertexMatchTemplate})
${whereTemplate}
RETURN v AS object
ORDER BY id(v)
${limitTemplate}
`;
};
Expand Down

0 comments on commit 0a59dda

Please sign in to comment.