ONgDB is an independent fork of Neo4j® Enterprise Edition version 3.4.0.rc02 licensed under AGPLv3 and/or Community Edition licensed under GPLv3
391
stars
58
forks
source link
3.6 - Result Count on Full-text Indexes #18
Closed
alexiudice closed 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
db.index.fulltext.countNodes(<indexName>, <query>)
anddb.index.fulltext.countRelationships(<indexName>, <query>)
count
that contains the number of matching nodes xor relationships found from the query.Usage
Straightforward usage, first create a fulltext index and then you will be able to call the
count
procedure.E.x.
would return the total number of nodes in the
countIndex
.would return the total number of nodes that are found when querying for the string
john
.