需要索引的力量吗?或者只是纯文本搜索?

发布于 12-19 14:05 字数 469 浏览 5 评论 0原文

我目前正在开发一个相当大的事件项目,它的主要功能是能够根据关键字等搜索事件模型。

我正在尝试权衡最佳选择,是否使用类似 django-haystack 或只是通过模型进行纯文本搜索。它只是一种可搜索的模型,但它可能会变得相当大。

如果我要沿着 django-haystack 的路线走下去,最好使用哪个后端?我在带有 debian 操作系统的 nginx 上运行。我尝试过使用 whoosh,但由于某种原因,服务器在配置它时遇到了一些错误,我不想花精力去修复它,然后发现一直有更好的选择。

任何人都可以链接来帮助配置 haystack 的任何资源都会很棒。

I'm currently working on a rather large events project, It's main feature is the ability to search through event models based on keywords etc.

I'm trying to weigh up the best option to take, whether to use something like django-haystack or just plain text searching through the models. It is only one model that will be searchable, however It could get pretty large.

If I was to go down the route of django-haystack what backend is the best to use? I'm running on a nginx with a debian OS. I have tried using whoosh, but for some reason the server runs into some errors whilst configuring it and I don't want to put the effort in to fix it to then find there was a better option all along.

Any resources that anyone could link also to help configuring haystack would be fantastic.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泅渡2024-12-26 14:05:57

你可以使用 solr 作为后端,虽然还可以,但是 solr 已经

成熟了
如果您有一个模型要索引,那么安装很容易,

而您只需要

创建索引模型
索引模板
运行重建索引命令

仅此而已:)
http://docs.haystacksearch.org/dev/tutorial.html#handling-data

you can use solr as backend whosh is ok but solr is

mature
easy to install

if you have one model to index than you only need to

create your index model
index template
run rebuild index command

thats all :)
http://docs.haystacksearch.org/dev/tutorial.html#handling-data

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文