RE: search

From: Dylan Douglas <dylan_at_mediadefender.com>
Date: Fri, 27 Apr 2007 15:30:49 -0700

It worked until I optimized the way to get the total. Well, screw that
then. Here's the version that gives the right total. Mine you, this is
the total without taking filtering and sources into consideration. So,
if the family filter is on, it might say there are 50 more search
results and end up returning nothing when you ask for the next page of
data.

Make sure to check what is coming back, since you should probably
display "No search results" or some other really cool message when you
get no results, so people know not to wait forever.

>-----Original Message-----
>From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
>Sent: Friday, April 27, 2007 3:20 PM
>To: Dylan Douglas
>Cc: Ben Ebert; Ivan Kwok; Jay Mairs; Nainesh Solanki; Sergio
>Alvarez; Ty Heath
>Subject: Re: search
>
>Ok, but why is the total always no bigger than 20?
>
>On Apr 27, 2007, at 3:11 PM, Dylan Douglas wrote:
>
>> Done.
>>
>>> -----Original Message-----
>>> From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
>>> Sent: Friday, April 27, 2007 2:42 PM
>>> To: Dylan Douglas
>>> Cc: Ben Ebert; Ivan Kwok; Jay Mairs; Nainesh Solanki; Sergio
>>> Alvarez; Ty Heath
>>> Subject: Re: search
>>>
>>> You need quotes around your total value in the json.
>>>
>>> On Apr 27, 2007, at 11:35 AM, Dylan Douglas wrote:
>>>
>>>> Z-
>>>>
>>>> The Search function now works the same as the history.php, where
>>>> you can
>>>> specify a offset and limit. So, we can do the multi-page layout
>>>> with
>>>> it. It also gives the total number of search results, so you can
>>>> figure
>>>> out if there is a next page.
>>>>
>>>> -D
>>>>
>>>> -----
>>>> Dylan Douglas
>>>> MediaDefender
>>>>
>>>>
>>>>
>>>> <winmail.dat>
>>>
>>>
>
>
Received on Fri Sep 14 2007 - 10:56:02 BST

This archive was generated by hypermail 2.2.0 : Sun Sep 16 2007 - 22:19:47 BST