assertEquals(1,hits.totalHits);
//assertEquals(String.valueOf((long)((long)Integer.MAX_VALUE*2L)),searcher.doc(hits.scoreDocs[0].doc).get("id"));
assertEquals(String.valueOf((long)((long)Integer.MAX_VALUE*2L+1L)),searcher.doc(hits.scoreDocs[0].doc).get("id"));
hits=searcher.search(new TermQuery(new Term("contents","hao")),10);
assertEquals(1,hits.totalHits);
//assertEquals(String.valueOf((long)((long)Integer.MAX_VALUE*2L)),searcher.doc(hits.scoreDocs[0].doc).get("id"));
System.out.println("hao: searching is successful");
}
finally