In graph repository I did not find a method which can be used to fire
compound query across different keys.

The available methods takes 'key' as input:
     graphRepository.findAllByQuery(indexname, key, query)

But i my case I want to fire a query across keys. Something like code
snippet below. It uses graphDatabaseContext instead of spring's
GraphRepository

     String query = "(name:*" + searchStr + "* OR details:*" + searchStr +
"*) AND " + NumericRangeQuery.newIntRange("expectedAmount", fromRange,
toRange, true, true);
     Index<Node> namedProductIndex =
graphDatabaseContext.getIndex(Product.class, "product-search");
     Iterable<Node> nodes = namedProductIndex.query(new
QueryContext(query).sort(new Sort(sortField)));

Is there no method in graph repository to handle multiple keys?

Thanks,
Sambodhi
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to