graphfoundation / ongdb

ONgDB is an independent fork of Neo4j® Enterprise Edition version 3.4.0.rc02 licensed under AGPLv3 and/or Community Edition licensed under GPLv3
https://www.graphfoundation.org/projects/ongdb/
380 stars 57 forks source link

3.6 - Fulltext - MultiSort #52

Closed alexiudice closed 3 years ago

alexiudice commented 3 years ago

On top of the pagination PR.

Fulltext indexes with sort are created in their usual way. The searchNodes/searchRelationships procedures have been updated to use a sortBy list of sorts to apply to the query:

CALL db.index.fulltext.searchNodes("personIndex", "*", 
{sortBy: 
    [
        {property: "born", direction: "ASC"},
        {property: "name", direction: "DESC"}
    ]
}) YIELD node, score RETURN *