cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

2 REPLIES 2

@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