【问题标题】:delete lucene index in ontotext graphdb在 ontext graphdb 中删除 lucene 索引
【发布时间】:2018-10-22 15:32:34
【问题描述】:

我基于graphdb documentation 在 ontext 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".
}

&lt;http://www.ontotext.com/owlim/lucene#&gt;支持删除索引有哪些选项

【问题讨论】:

    标签: graphdb


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多