Well Anth, you're wrong. What the "Search: Search Terms" filter does is precisely using the search index as a filter, which allows you to run the same kind of keyword based searches as you would do with the default search block. Expose it and add a non-exposed filter for each location and you should be good to go.<br>
<br><div class="gmail_quote">On Tue, Feb 9, 2010 at 12:47 PM, Anth <span dir="ltr"><<a href="mailto:malkouna@yahoo.com.au">malkouna@yahoo.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well I want to use the indexed search that is already available, but have several variations of the search (8 to be exact, one for every Australian state and one "National" one which would be the base unmodified search). For this reason I don't think it's views that I want as, and correct me if I'm wrong, but the views exposed filters work only on the column that the filter is defined for?<br>
<br>
I get the feeling that I'm going to have to write 8 separate forms and call the current search functions in each one, modifying the SQL each time. Which is fine, just thought there might be a smarter way to do it.<br>
<br>
A.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Date: Mon, 8 Feb 2010 19:51:24 +0800<br>
From: Ronan Berder<<a href="mailto:berder@teddy.fr" target="_blank">berder@teddy.fr</a>><br>
Subject: Re: [development] Multiple search blocks doing different<br>
searches.<div><div></div><div class="h5"><br>
<br>
The question would be; what is it exactly that you are trying to search? If<br>
you just want a few separate search blocks that search within a certain<br>
content type, you may find interesting defining a View for it, creating<br>
several displays for each content type you wish to be searchable and<br>
exposing the "Search: Search Terms" filter. You then can set up the "Exposed<br>
form in block: " setting to true (in "Basic Settings") and you should then<br>
have the search forms showing in separate blocks. You can then compose by<br>
adding filters or exposed filters your own way (on content types, taxonomy<br>
or whatever you wish to let user search by or within).<br>
<br>
On Mon, Feb 8, 2010 at 12:48 AM, Anth<<a href="mailto:malkouna@yahoo.com.au" target="_blank">malkouna@yahoo.com.au</a>> wrote:<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
My goal is to set up a tabbed search block which I'll use Quick Tabs to<br>
build, where each tab will prime the search with a keyword. The step before<br>
this though is to have multiple blocks that do slightly different searches.<br>
Defining the blocks is easy enough but I can't use hook_db_rewrite_sql (an<br>
example from searching at [1]) as I don't know what block is calling it. Is<br>
there some easy way or trick around this or do I just have to manually call<br>
do_search, or write my own search, for each block?<br>
<br>
Thanks,<br>
Anthony<br>
<br>
[1] <a href="http://www.lullabot.com/articles/hiding-content-drupals-search-system" target="_blank">http://www.lullabot.com/articles/hiding-content-drupals-search-system</a><br>
<br>
<br>
</blockquote></div></div></blockquote>
</blockquote></div><br>