cancel
Showing results for 
Search instead for 
Did you mean: 

How to display query results in Bloom

cagataytulu
Node Link

I am trying to create search phrases in the bloom, my cypher query returns string, integer values as below. I can not show these values in the bloom, bloom only shows the cyher query which returns nodes, or paths

match p=(a:Word)-[r1:nextWord]->(b:Word)-[r2:nextWord]->(c:Word) where r1.sentId=r2.sentId return p,count(*) as cp order by cp desc limit 20

2 REPLIES 2

giuseppe_villan
Graph Fellow

@cagataytulu

I guess that currently Neo4j Bloom doesn't support anything else than Neo4j entities,
even if I didn't found into documentation that says it.
Maybe as a workaround, you could leverage on Apoc virtual entities (Virtual Nodes/Rels - APOC Documentation).

That is, for example:

match p=(a:Word)-[r1:nextWord]->(b:Word)-[r2:nextWord]->(c:Word) 
where r1.sentId=r2.sentId 
with p, count(*) as cp order by cp desc limit 20
return p, apoc.create.vNode(['Count'], {count: cp})

Thank you very much Villani