本帖最后由 marty_xzh 于 2010-09-12 20:13:40 编辑

解决方案 »

  1.   

    Spring 没有配置事务吧,
    DAO事务,
      

  2.   

    <property name="hibernate.search.default.indexBase"> 
       d:\index 
      </property> 
    这样写是可以的, 但是以下就不知道了,是个错误的 
     <property name="hibernate.search.default.indexBase"> 
       classpath:indexdoc   </property>  
    //放在WEB-INF\classes\indexdoc 下 怎么写啊 
    还有以下问题不解,望告知.   QueryParser parser = new QueryParser("newstitle", new StandardAnalyzer()); 
       org.apache.lucene.search.Query luceneQuery = null; 
    try { 
    luceneQuery = parser.parse(newstitle); // build Lucene query 
    } catch (ParseException e) { 
    e.printStackTrace(); 
                } 
    这个是对newstitle新闻标题进行查询,能不能对新闻所有记录查询啊? 
      

  3.   


    spring配置了事务 只是找出的结果不对