什么是Django的干草堆?

什么是Django的干草堆?,第1张

概述我一直在读关于Haystack,飞快移动,Xapian等的信息.但是我并没有真正得到它们的用途以及它们之间的关系. 例如,有人说 Enable searching on third-party apps without touching that app’s code. 有些人可以向我解释一下这些用于提供一个很好的链接和简单到足以理解一个begginer. 谢谢 Haystack是与Whoosh 我一直在读关于haystack,飞快移动,XAPIan等的信息.但是我并没有真正得到它们的用途以及它们之间的关系.
例如,有人说

Enable searching on third-party apps without touching that app’s code.

有些人可以向我解释一下这些用于提供一个很好的链接和简单到足以理解一个begginer.
谢谢

解决方法 Haystack是与Whoosh / XAPIan /等不同的野兽:

haystack provIDes modular search for Django. It features a unifIEd,familiar API that allows you to plug in different search backends (such as Solr,Whoosh,XAPIan,etc.) without having to modify your code.

从the FAQ开始(重点补充):

What is haystack?

haystack is meant to be a portable interface to a search engine of your choice. Some might call it a search framework,an abstraction layer or what have you. The IDea is that you write your search code once and should be able to freely switch between backends as your situation necessitates.

提到的“搜索后端”是具有自己的API的搜索库. haystack在任何一个特定搜索库的顶部(和独立)提供统一的API.

总结

以上是内存溢出为你收集整理的什么是Django的干草堆?全部内容,希望文章能够帮你解决什么是Django的干草堆?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1192623.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-03
下一篇 2022-06-03

发表评论

登录后才能评论

评论列表(0条)

保存