rg.compass.core.engine.SearchEngineException: Lucene connection must be set in the settings. Please
来源:互联网 发布:扫频软件 编辑:程序博客网 时间:2024/05/17 02:25
使用compass-2.2.0.jar报这个错 大致意思是没有设置配置 例如:
@Test
public void testSearchIndex(){
CompassConfiguration configuration=new CompassConfiguration();
// configuration.configure();
Compass compass = configuration.buildCompass();
CompassSession session = compass.openSession();
CompassHits hits = session.find("lucene");
for (int i = 0; i < hits.length(); i++) {
Article article=(Article) hits.data(i);
System.out.println(article.getContent());
}
}
以上代码如何注释configuration.configure(); 会报上面的错误 所以我们需要添加
0 0
- rg.compass.core.engine.SearchEngineException: Lucene connection must be set in the settings. Please
- 'hibernate.dialect' must be set when no Connection available
- hibernate.dialect' must be set when no Connection available错误
- hibernate.dialect' must be set when no Connection available错误
- hibernate.dialect' must be set when no Connection available错误
- 'hibernate.dialect' must be set when no Connection available
- 'hibernate.dialect' must be set when no Connection avalable
- HibernateException: 'hibernate.dialect' must be set when no Connection available
- Tomcat settings should be set in Tomcat Preference Page?
- 解决A master URL must be set in your configuration
- A master URL must be set in your configuration
- mysql:Collations Must Be for the Right Character Set
- Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings
- The security settings could not be applied to the database because the connection has failed w
- 'hibernate.dialect' must be set when no Connection available 异常处理
- HTTP Status 500 - 'hibernate.dialect' must be set when no Connection avalable
- 异常:org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection available
- 搭建hibernate时 'hibernate.dialect' must be set when no Connection available错误
- python内置容器之集合
- Codeforces 733C (模拟,贪心)
- filter-name 报:is not allowed here 异常解决方案,severlet3.0以后的规范不再有 XML 了
- 前端日记——16.11.1
- bootstrap 学习笔记(二)
- rg.compass.core.engine.SearchEngineException: Lucene connection must be set in the settings. Please
- totalWeight
- eclipse 中忽略jsp, xml文件中的报错信息
- 版本号比较(Compare two Version numbers)
- phpcms的使用
- Android 蓝牙开发之搜索、配对、连接、通信大全
- 简单写字板
- 数据库系统原理与设计~基本概念的接触(一)
- 项目文档的编写