我一直在读关于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.