关系上建立索引,进行范围查找

发布时间:2024-12-27 16:58

CREATE (slc:Airport {abbr:‘SLC’, id:14869, name:‘SALT LAKE CITY INTERNATIONAL’}) CREATE (oak:Airport {abbr:‘OAK’, id:13796, name:‘METROPOLITAN OAKLAND INTERNATIONAL’}) CREATE (bur:Airport {abbr:‘BUR’, id:10800, name:‘BOB HOPE’}) CREATE (f2:Flight {flight_num:6147, day:2, month:1, weekday:6, year:2016}) CREATE (f9:Flight {flight_num:6147, day:9, month:1, weekday:6, year:2016}) CREATE (f16:Flight {flight_num:6147, day:16, month:1, weekday:6, year:2016}) CREATE (f23:Flight {flight_num:6147, day:23, month:1, weekday:6, year:2016}) CREATE (f30:Flight {flight_num:6147, day:30, month:1, weekday:6, year:2016}) CREATE (f2)-[:DESTINATION {arr_delay:-13, taxi_time:9}]->(oak) CREATE (f9)-[:DESTINATION {arr_delay:-8, taxi_time:4}]->(bur) CREATE (f16)-[:DESTINATION {arr_delay:-30, taxi_time:4}]->(slc) CREATE (f23)-[:DESTINATION {arr_delay:-21, taxi_time:3}]->(slc) CREATE (f30)-[:DESTINATION]->(slc)

在关系上建立了索引 MATCH (:Flight)-[r:DESTINATION]->(:Airport) CALL apoc.index.addRelationship(r,[‘taxi_time’]) RETURN count(*)

进行查询 CALL apoc.index.relationships(‘DESTINATION’,‘taxi_time:11’) YIELD rel, start AS flight, end AS airport RETURN flight.flight_num, airport.name;

疑问? taxi_time支持范围查找吗。比如我想查询taxi_time>11的怎么查询。还是说不支持范围

网址:关系上建立索引,进行范围查找 https://mxgxt.com/news/view/535528

相关内容

怎么样利用LinkedIn寻找目标客户?建立客户关系的关键
使用Neo4j进行复杂关系查询有哪些最佳实践
Neo4j关系属性怎样进行类型管理
爱的信任:如何建立长久的恋爱关系?
审判中心背景下检察引导侦查调查取证新机制的构建
如何进行红人引流?哪些渠道寻找网红和网红合作?
形象管理,是指专业技术人员为建立适当的形象而进行的一系列活动。( )
形象管理,是指专业技术人员为建立适当的形象而进行的一系列活动。..
品牌出海一定要与海外媒体建立联系
快手理想家与福建城安置业建立合作 探索直播卖房新模式

随便看看