StringuserEmail="jsmith@example.org";//从索引中获取数据IndexHits<Node>indexHits=userIndex.get("email",userEmail);//单个NodeloggedOnUserNode=indexHits.getSingle();if(loggedOnUserNode==null){thrownewNoSuchUserException("No user with email "+userEmail+" found");}