neo4j教程
作者: Tony
Index

1、创建索引


CREATE INDEX ON :Person(name)


2、删除索引


DROP INDEX ON :Person(name)
3、索引使用场景


(3.1)


MATCH (person:Person { name: 'Andres' }) RETURN person


(3.2)


MATCH (person:Person) WHERE person.name = 'Andres' RETURN person


(3.3)


MATCH (person:Person) WHERE person.name > 'B' RETURN person


(3.4)


MATCH (person:Person) WHERE person.name IN ['Andres', 'Mark'] RETURN person


(3.5)


MATCH (person:Person) WHERE person.name STARTS WITH 'And' RETURN person


(3.6)


MATCH (p:Person) WHERE HAS (p.name) RETURN p

4、查看索引
:schema 


标签: person、match、andres、return、索引
一个创业中的苦逼程序员
  • 回复
隐藏