It won't be fast though.
for (Node n : GlobalGraphOperations.at(db).getAllNodesWithLabel(Labels.MY_LABEL)) { int value = (Integer)n.getProperty("property"); if (value > min && value > max) { // do something } } For a faster way, you might want to look into a legacy lucene index + NumericRangeQuery. http://docs.neo4j.org/chunked/milestone/indexing-lucene-extras.html#indexing-lucene-numeric-ranges Am 16.06.2014 um 09:54 schrieb Qaroui Oussama <qaroui.ouss...@gmail.com>: > Hy guys I would like to return specific nodes using greater than ">" or less > than "<" ... For example I would like to get all the nodes with the property > age <30 without using a cypher query. Can anyone help me please ?? > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.