我可以在 C++ 中使用 dtsearch在linux下,如果是的话我应该使用什么API?
我想在用 C++ 和 Gtkmm 编写的桌面应用程序中使用 dtsearch。我可以有任何 API 或 API 链接来完成我的工作吗?
I want to use dtsearch in my desktop application written in C++ and Gtkmm. Can i have any API or link to the API to do my thing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您谈论的是 Windows 最终用户产品 dtSearch Desktop,则它不打算或未获得通过 API 使用的许可。
另一方面,适用于 Linux(x32 或 x64)的 dtSearch Engine 是开发人员产品,具有 C++ 和 Java API;它包括针对所有流行文件类型的文件过滤器,可以同时搜索多个索引,每个索引容量超过 1 TB。具有自然语言以及复杂的布尔搜索和正则表达式搜索的功能。三服务器许可证的价格为 2500 美元(包括一年的技术支持),如果您只运行一个桌面应用程序,那么这可能有点过分了,但对于数据中心内的繁重搜索来说,这是理所当然的。全功能评估版下载请访问 www.dtsearch.com
If you are talking about dtSearch Desktop, the Windows end-user product, it is not intended or licensed to be used via the API.
The dtSearch Engine for Linux (x32 or x64) on the other hand is a developer product and has C++ and Java APIs; it includes file filters for all popular file types, can search multiple indexes at the same time, each holding over 1 Tbyte. Features natural language as well as complex Boolean searching and regular expression searching. At $2500 for a three-server license (includes one year of technical support) it is probably overkill if you just have a single Desktop application to run, but for heavy duty searching inside a datacentre it's a no brainer. Fully functional evaluation downloads at www.dtsearch.com
我曾经认为这需要一些技巧,因为我认为 dtSearch 核心是针对 Win32 API 编写的。但 Mahmoud Al-Qudsi 指出 dtSearch 现在可以直接用于 Linux。
也就是说,在使用过 dtSearch 和 Solr/Lucene 后,我建议您不要使用 dtSearch,除非有一些边缘功能只有它才能为您提供。如今有一些不错的开源搜索引擎。我建议使用 Lucene 的主要 java 版本,但是将 C++ 与 Java 集成可能会很痛苦。您是否检查过 CLucene(Lucene 的 C 端口)?或者其他基于 C/C++ 的开源搜索引擎之一?
Sphinx 是另一个开源引擎,用 C++ 编写。我个人没有使用过它,但它可能有足够的动力值得研究。
I used to think this would require some trickery, because I thought the dtSearch core was written against the Win32 APIs. But Mahmoud Al-Qudsi has pointed out that dtSearch is now available directly for Linux.
That said, having used both dtSearch and Solr/Lucene, I would recommend you not use dtSearch, unless there's some edge feature that only it can offer you. There are some nice open source search engines these days. I would suggest the main java version of Lucene, but integrating C++ with Java might be a pain. Have you checked out CLucene, the C port of Lucene? Or one of the other open source search engines based on C/C++?
Sphinx is another open source engine, written in C++. I haven't used it personally, but it might have enough momentum to also be worth looking into.