From 360acdb141ece84fa5cda7f9341848d20bebd04d Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Sun, 17 Feb 2019 17:32:14 +0100 Subject: [PATCH] Fix search --- src/schema.graphql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/schema.graphql b/src/schema.graphql index ee519fff3..e9b5d5106 100644 --- a/src/schema.graphql +++ b/src/schema.graphql @@ -3,10 +3,9 @@ type Query { statistics: Statistics! findPosts(filter: String!, limit: Int = 10): [Post]! @cypher( statement: """ - CALL db.index.fulltext.queryNodes('full_text_search', $filter+'~') - YIELD node AS node + CALL db.index.fulltext.queryNodes('full_text_search', $filter) + YIELD node RETURN node - ORDER BY node.createdAt DESC LIMIT $limit """ )