首页 文章

删除 ontotext graphdb 中的 lucene 索引

提问于
浏览
1

我在 ontotext graphdb 中基于graphdb 文档创建了一个 lucene 索引。但是我无法弄清楚如何用 sparql 删除索引。

Sparql 创建索引

PREFIX luc: <http://www.ontotext.com/owlim/lucene#>
 INSERT DATA {
 luc:analyzer luc:setParam "com.example.CustomAnalyzerFactory" .
 luc:index luc:setParam "uris".
 luc:moleculeSize luc:setParam "1".
 luc:myIndex luc:createIndex "true".
}

<http://www.ontotext.com/owlim/lucene#>支持哪些选项来删除索引

1 回答

  • 0

    删除索引的唯一方法是从文件系统中物理删除它。该索引位于$GDB_HOME/data/repositories/<repositoryId>/storage/lucene/<indexId>。数据库重启后,所有插件信息都将消失。

    请注意,除非您刷新,否则插件不会占用任何资源!话虽如此,我强烈建议您检查 Lucene Connector,它支持与数据库更新和删除索引的自动数据同步:

    http://graphdb.ontotext.com/documentation/standard/lucene-graphdb-connector.html

相关问题