Gremlin多个条件查询

1、使用and,如果and里只有俩条件则不能用range,需要有>=3个条件

如g.V().and(has('paper_title').has('paper_title',textContains('计算机')).has('paper_title',textContains('计算机')).has('authors', textContainsFuzzy('小熊'))).range(0,1);

2、使用has连接,最多俩条件,当有俩条件是不能用range,但可以连接count

g.V().has('paper_title', textContains('计算机')).has('authors', textContains('小熊'))

原文地址:https://www.cnblogs.com/wyhong/p/10676850.html