3
我需要修改lucene分析器,以便它能夠識別單詞「Ben」(荷蘭語停用詞)。請進一步指導我。我如何讓Lucene Analyzer接受這個單詞作爲常規單詞?配置自定義Lucene分析器以接受某些停用詞
用於服務器
的repository.xml<paramname="analyzer"value="org.hippoecm.repository.query.lucene.StandardHippoAnalyzer"/>
workspace.xml
<?xmlversion="1.0"encoding="UTF-8"?>
<Workspacename="default">
<!--
virtual file system of the workspace:
class: FQN of class implementing the FileSystem interface
-->
<FileSystemclass="org.apache.jackrabbit.core.fs.mem.MemoryFileSystem">
</FileSystem>
<!--
persistence manager of the workspace:
class: FQN of class implementing the PersistenceManager interface
-->
<PersistenceManagerclass="org.apache.jackrabbit.core.persistence.mem.InMemPersistenceManager">
</PersistenceManager>
<!--
Search index and the file system it uses.
class: FQN of class implementing the QueryHandler interface
-->
<SearchIndexclass="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<paramname="path"value="${wsp.home}/index"/>
</SearchIndex>
</Workspace>
謝謝..如何從服務器中刪除現有的lucene索引? – user1901762
在刪除它之前,應該停止應用程序容器。你應該有一個包含工作空間和索引的存儲目錄。此目錄的位置可能因您自己的配置/設置而異。 – Jeroen