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/
391 stars 58 forks source link

3.6 - Result Count on Full-text Indexes #18

Closed alexiudice closed 4 years ago

alexiudice commented 4 years ago

This PR is on top of the story--luceneFulltextSort PR. Once that PR is merged this PR will reduce down to a single commit.

Changes

Usage

Straightforward usage, first create a fulltext index and then you will be able to call the count procedure.

E.x.

CALL db.index.fulltext.countNodes("countIndex", "*") YIELD count
RETURN count

would return the total number of nodes in the countIndex.

CALL db.index.fulltext.countNodes("countIndex", "john") YIELD count
RETURN count

would return the total number of nodes that are found when querying for the string john.

alexiudice commented 4 years ago

New branch