question: public < T extends PropertyContainer > List < SearchMatch < T > > search ( String query , Class < T > clazz ) { SearchResult result = doQuery ( query , clazz ) ; List < SearchMatch < T > > matches = buildSearchMatches ( result ) ; @ SuppressWarnings ( "unchecked" ) Function < SearchMatch , T > resolver = ( Function < SearchMatch , T > ) ( clazz . equals ( Node . class ) ? getNodeResolver ( ) : getRelationshipResolver ( ) ) ; return resolveMatchItems ( matches , resolver ) ; }
target:  Search for nodes or relationships