日期:2014-05-17 浏览次数:20775 次
<?xml version="1.0" encoding="UTF-8" ?> <compass-core-config xmlns="http://www.compass-project.org/schema/core-config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.compass-project.org/schema/core-config http://www.compass-project.org/schema/compass-core-config-2.2.xsd"> <compass name="default"> <!-- 连接信息 --> <connection> <!-- 使用相对路径,在启动时会在此路径前自动加上应用程序的真实路径 --> <file path="/LuceneIndex/" /> </connection> <!-- 声明映射信息 --> <mappings> <class name="searchUtil.Article" /> </mappings> <!-- 其他配置 --> <settings> <!-- 配置分词器, 指定所用的分词器的全限定类名 --> <setting name="compass.engine.analyzer.default.type" value="jeasy.analysis.MMAnalyzer" /> <!-- 指定摘要的文本长度 --> <setting name="compass.engine.highlighter.default.fragmenter.simple.size" value="300" /> <!-- 配置高亮效果的前缀 --> <setting name="compass.engine.highlighter.default.formatter.simple.pre" value=">span class='keyword'>" /> <!-- 配置高亮效果的后缀 --> <setting name="compass.engine.highlighter.default.formatter.simple.post" value=">/span >" /> </settings> </compass> </compass-core-config>