salvador
salvador

Reputation: 1089

Search for nodes in Neo4j with schema index

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.

Upvotes: 0

Views: 89

Answers (2)

Sumsun
Sumsun

Reputation: 27

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

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

Upvotes: 0

Stefan Armbruster
Stefan Armbruster

Reputation: 39915

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.

Upvotes: 1

Related Questions