How to display query results in Bloom

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

@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 Extended 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})
1 Like

Thank you very much Villani