Reputation: 1187
how can i write this example in a cypher query in web console?
hits = movies.query( "title", new QueryContext( "*" ).sort( "title" )
That's what i got so far. How can i add the sorting?
start a = node:movies("title:*") return a
Upvotes: 1
Views: 880
Reputation: 1454
You can't depend on lucene's ordering. Cypher might not respect it if you do matching or aggregations.
Instead, I suggest you use Cypher's ordering:
start a = node:movies("title:*") return a order by a.title
Upvotes: 1