Search for nodes in Neo4j with schema index

107 Views Asked by At

I have a graph that has only Schema indexes and not legacy indexes as Neo4j documentation recommends. I want to search for nodes like in this example described under the legacy indexing section (exact match, start queries etc). I am wondering if this is possible with schema indexes and if schema indexes use lucene underneath.

2

There are 2 best solutions below

2
On BEST ANSWER

As of today schema indexes just support exact matches, e.g.

MATCH (p:Person) WHERE p.name='abc'

or IN operators

MATCH (p:Person) WHERE p.name in ['abc','def']

Future releases might have support for wildcards as well.

0
On

you can use wildcards as well in that case the query would be

MATCH (b:book) WHERE b.title=~"F.*" RETURN b;