private void doSelfValidationQuery() throws Throwable {
  TermQuery tq=new TermQuery(new Term(ServiceDocument.FIELD_NAME_SELF_LINK,getSelfLink()));
  ServiceDocumentQueryResult rsp=new ServiceDocumentQueryResult();
  Operation op=Operation.createGet(getUri());
  EnumSet<QueryOption> options=EnumSet.of(QueryOption.INCLUDE_ALL_VERSIONS);
  IndexSearcher s=new IndexSearcher(DirectoryReader.open(this.writer,true,true));
  queryIndex(op,options,s,tq,null,Integer.MAX_VALUE,0,null,rsp,null);
}

private void doSelfValidationQuery ( ) throws Throwable { TermQuery tq = new TermQuery ( new Term ( ServiceDocument . FIELD_NAME_SELF_LINK , getSelfLink ( ) ) ) ; ServiceDocumentQueryResult rsp = new ServiceDocumentQueryResult ( ) ; Operation op = Operation . createGet ( getUri ( ) ) ; EnumSet < QueryOption > options = EnumSet . of ( QueryOption . INCLUDE_ALL_VERSIONS ) ; IndexSearcher s = new IndexSearcher ( DirectoryReader . open ( this . writer , true , true ) ) ; queryIndex ( op , options , s , tq , null , Integer . MAX_VALUE , 0 , null , rsp , null ) ; }
issues a query to verify index is healthy
