RE: search

From: Ivan Kwok <ivan_at_mediadefender.com>
Date: Fri, 27 Apr 2007 16:38:11 -0700

Why are the last few pages always have no results? Is that because we're
filtering out the ones with no sources?

-Ivan

-----Original Message-----
From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
Sent: Friday, April 27, 2007 4:28 PM
To: Dylan Douglas
Cc: Ben Ebert; Ivan Kwok; Jay Mairs; Nainesh Solanki; Sergio Alvarez; Ty
Heath
Subject: Re: search

Ok, well, that's all fine and good and everything, but I made the
change to say "No results found." when there are no results, but when
I do a search for "metallica" I get 114 (!) pages of shit, and so I
click on page 114 and it says "No results found."

Err...

So I changed it to only say that if they're looking at page 1, but I
think that's a bit crap.

- Z

On Apr 27, 2007, at 3:30 PM, Dylan Douglas wrote:

> 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:07 BST

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