nebula版本:3.6.0
nebula-java客户端版本:3.4.0
硬盘:SSD
问题如下:
使用语句1查询时,只能查出3条路径;使用语句2时,指定了边的属性,查出来的路径条数多于语句1(两次查询结果中边的属性一致;边的属性有多种)
语句1:match(n:keyword)-[r]-(m:keyword) where id(n)==‘4b06cf29bfb64fa8b74e8ec2317c4556’ return * limit 10;
结果1:
±----------------------------------------------------------------±-----------------------------------------------------------------------------------------------------±----------------------------------------------------------------+
| n | r | m |
±----------------------------------------------------------------±-----------------------------------------------------------------------------------------------------±----------------------------------------------------------------+
| (“0337ec07c07c43938bda804193ad44e7” :keyword{name: “生物浮岛”}) | [:follow “0337ec07c07c43938bda804193ad44e7”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“055bf16a5d7240d989aba132b2ab1686” :keyword{name: “小清���”}) | [:follow “055bf16a5d7240d989aba132b2ab1686”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“0cbb1fea1ad54175a3286d8899be9e5f” :keyword{name: “地表水”}) | [:follow “0cbb1fea1ad54175a3286d8899be9e5f”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
±----------------------------------------------------------------±-----------------------------------------------------------------------------------------------------±----------------------------------------------------------------+
语句2:match(n:keyword)-[r]-(m:keyword) where id(n)==‘4b06cf29bfb64fa8b74e8ec2317c4556’ and r.name==‘相关词’ return * limit 10;
结果2:
±--------------------------------------------------------------------±-----------------------------------------------------------------------------------------------------±----------------------------------------------------------------+
| n | r | m |
±--------------------------------------------------------------------±-----------------------------------------------------------------------------------------------------±----------------------------------------------------------------+
| (“0337ec07c07c43938bda804193ad44e7” :keyword{name: “生物浮岛”}) | [:follow “0337ec07c07c43938bda804193ad44e7”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“055bf16a5d7240d989aba132b2ab1686” :keyword{name: “小清河”}) | [:follow “055bf16a5d7240d989aba132b2ab1686”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“0cbb1fea1ad54175a3286d8899be9e5f” :keyword{name: “地表水”}) | [:follow “0cbb1fea1ad54175a3286d8899be9e5f”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“239f391f9f7c4456a2eeda460d6e908e” :keyword{name: “景观再造”}) | [:follow “239f391f9f7c4456a2eeda460d6e908e”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“248f6f08fd694ea688794b4c723640d4” :keyword{name: “人工水草”}) | [:follow “248f6f08fd694ea688794b4c723640d4”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“25a0a2f7f4944585a1a1cf437aaaaafa” :keyword{name: “城��生态公园”}) | [:follow “25a0a2f7f4944585a1a1cf437aaaaafa”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“2bd0ab0e00a740fd998dacdd0df68f88” :keyword{name: “渭河”}) | [:follow “2bd0ab0e00a740fd998dacdd0df68f88”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“2bfd9b961b684e888117d7fb926d94a9” :keyword{name: “瓦氏马尾藻”}) | [:follow “2bfd9b961b684e888117d7fb926d94a9”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“33cbb34be701400f8d9c6557ac5879bd” :keyword{name: “黑土地”}) | [:follow “33cbb34be701400f8d9c6557ac5879bd”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
| (“39a29f7f90844faaaeaffffa17cf162a” :keyword{name: “食藻虫”}) | [:follow “39a29f7f90844faaaeaffffa17cf162a”->“4b06cf29bfb64fa8b74e8ec2317c4556” @0 {name: “相关词”}] | (“4b06cf29bfb64fa8b74e8ec2317c4556” :keyword{name: “生态修复”}) |
±--------------------------------------------------------------------±-----------------------------------------------------------------------------------------------------±----------------------------------------------------------------+