搜索索引未根据新 html 内容更新
Search index not updated on new html content
我有一个带有目录的 Eclipse 插件和一些 html 文件作为集成帮助。
当我更改某些 HTML 文件时,搜索操作的索引没有重建。
我什至尝试按照此处所述预先构建索引:
https://help.eclipse.org/2019-09/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fua_help_setup_preindex.htm
这是我的 Ant 目标:
<target name="build.index" description="Builds search index for the plug-in: com.marchesini.mas.rcp.help." if="eclipse.running">
<help.buildHelpIndex manifest="plugin.xml" destination="."/>
<help.buildHelpIndex manifest="plugin.xml" destination="nl/en_US"/>
</target>
构建似乎是成功的,语言环境是 en_US,来自 config.ini。
但是当我在运行时搜索索引时它没有更新。
我发现触发索引重建的唯一方法是更改插件的版本号,如 中所示。
真的只能这样吗??
如何在插件部署时自动重建?
谢谢!
当然,相同的版本号意味着没有变化,包括帮助内容。
作为黑客,在配置区可以删除子目录[=10=中的索引].
对于动态内容,您可以实施扩展点 org.eclipse.help.ui.searchEngine
。
我发现触发索引重建的唯一方法是更改插件的版本号,如 。
出于性能原因,预建索引很有用,但不会触发搜索引擎使用新索引!
我有一个带有目录的 Eclipse 插件和一些 html 文件作为集成帮助。 当我更改某些 HTML 文件时,搜索操作的索引没有重建。
我什至尝试按照此处所述预先构建索引: https://help.eclipse.org/2019-09/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fua_help_setup_preindex.htm
这是我的 Ant 目标:
<target name="build.index" description="Builds search index for the plug-in: com.marchesini.mas.rcp.help." if="eclipse.running">
<help.buildHelpIndex manifest="plugin.xml" destination="."/>
<help.buildHelpIndex manifest="plugin.xml" destination="nl/en_US"/>
</target>
构建似乎是成功的,语言环境是 en_US,来自 config.ini。 但是当我在运行时搜索索引时它没有更新。
我发现触发索引重建的唯一方法是更改插件的版本号,如 中所示。 真的只能这样吗??
如何在插件部署时自动重建?
谢谢!
当然,相同的版本号意味着没有变化,包括帮助内容。
作为黑客,在配置区可以删除子目录[=10=中的索引].
对于动态内容,您可以实施扩展点 org.eclipse.help.ui.searchEngine
。
我发现触发索引重建的唯一方法是更改插件的版本号,如 。
出于性能原因,预建索引很有用,但不会触发搜索引擎使用新索引!