我使用django和haystack with whoosh和我有幾個關於它們的問題:如何在Haystack和Whoosh中搜索所有django模型?
1)當我嘗試搜索smth時,我應該選擇所有已經在whoosh中編制索引的模型。我如何設置系統以在任何地方(在所有型號上)查找值?
2)我有搜索輸入框,但它不適用乾草堆網址。所以,我的模板(我使用自舉):
<form method="get" action="/search/" class="navbar-search pull-left">
<input type="text" class="search-query" placeholder="Search">
</form>
而且我在教程中有搜索網址,如:
(r'^search/', include('haystack.urls')),
怎麼會說出這樣的形式immidiately開始搜索和發送數據到草垛?