private List processHits(Hits hits,int startIndex,int endIndex)throws Exception{
  if(endIndex>=hits.length())
   endIndex=hits.length()-1;
  List docs=new ArrayList();
  for(int i=startIndex;i<=endIndex;i++){
   Document doc=hits.doc(i);
   Map docMap=new HashMap();
   docMap.put("id",doc.getField("id").stringValue());
   docMap.put("name",doc.getField("name").stringValue());
   docMap.put("price",doc.getField("price").stringValue());
   docs.add(docMap);
  }
  return docs;
 }
ExtJS教程-
 Hibernate教程-
Struts2 教程-
Lucene教程