apoc.index支持的Lucene语法不完整?
发布于 6 年前 作者 macroxmu 2235 次浏览 来自 问答

正在学习apoc文档里面的例子:https://neo4j-contrib.github.io/neo4j-apoc-procedures/ 有个查询关系属性的例子: CALL apoc.index.relationships(‘DESTINATION’,‘taxi_time:11’) YIELD rel, start AS flight, end AS airport RETURN flight.flight_num, airport.name;

如果把查询条件改成taxi_time:[1 to 99]就可以查出数据,但是条件如果写成taxi_time:>1就查不出来,我在elasticsearch里面都是用:>这种方法来查都没问题呀?

2 回复

APOC用的是Lucene的检索引擎,其支持的查询语法都在这里定义: http://lucene.apache.org/core/3_5_0/queryparsersyntax.html 这个和ElasticSearch还是有区别的。

@graphway 看来是Lucene不支持大于的查询了,谢谢~

回到顶部