English 中文(简体)
利用沙斯特(django)在索尔进行结果搜索
原标题:Search within results using haystack (django) on solr

我试图在我的现场前一次搜索中搜寻。

就像“天空”一样,在取得结果之后,我就在结果内打过无线电台。 然后,我打上“蓝色”(假设搜索条现在空洞)。 因此,我将寻找“天蓝”。

我在探讨解决这一问题的办法,但似乎并没有在这种权宜之计中公布。

Im通过该表格,但我无法进入无线电箱。 我只想挽救原来的问话,然后如果我选择在内部搜寻,我只想作一个 app。

Any ideas?

感谢。

问题回答

您指的是使用检查箱吗? 假设你在提出形式要求后将搜寻工作清除。 我不敢肯定你在进行初步搜查后,在基本层面使用了多少 d干,但你可以把价值从对模板的看法推向自己的变量:

initial_keyword =  sky   # default to empty if none entered

In the template, insert the following within your html form tags:

<input type="hidden" name="initial_keyword" value="{{ initial_keyword }}" />

查阅<代码>request.GET的数值,请见 初始_keyword,并可通过您的核对箱查阅。 从那以后,如果检查箱,将<代码>(初始_keyword)和新输入值结合起来。





相关问题
How to get two random records with Django

How do I get two distinct random records using Django? I ve seen questions about how to get one but I need to get two random records and they must differ.

Moving (very old) Zope/Plone Site to Django

I am ask to move data from a (now offline) site driven by Plone to a new Django site. These are the version informations I have: Zope Version (unreleased version, python 2.1.3 ) Python Version 2.1....

Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

Flexible pagination in Django

I d like to implement pagination such that I can allow the user to choose the number of records per page such as 10, 25, 50 etc. How should I go about this? Is there an app I can add onto my project ...

is it convenient to urlencode all next parameters? - django

While writing code, it is pretty common to request a page with an appended "next" query string argument. For instance, in the following template code next points back to the page the user is on: &...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

热门标签