Fix search

This commit is contained in:
Grzegorz Leoniec 2019-02-17 17:32:14 +01:00
parent 55ee112dfa
commit da804e26ae
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -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
"""
)