RE: search

From: Dylan Douglas <dylan_at_mediadefender.com>
Date: Fri, 27 Apr 2007 17:42:42 -0700

Okay, changed my side to return 21 if there are more results, so now the
search is only showing previous pages and the next page.

>-----Original Message-----
>From: Dylan Douglas
>Sent: Friday, April 27, 2007 5:10 PM
>To: Ivan Kwok; Stefan Kaczmarek
>Cc: Ben Ebert; Jay Mairs; Nainesh Solanki; Sergio Alvarez; Ty Heath
>Subject: RE: search
>
>I'm not sure how to handle that. We could just say, "prev
>page" and "next page" and the number of prev pages, but not a
>number of next pages. And when I'm doing my query, see if I
>can make 21, rather than 20. If there is at least one more,
>display next page, otherwise don't?
>
>>-----Original Message-----
>>From: Ivan Kwok
>>Sent: Friday, April 27, 2007 4:38 PM
>>To: Stefan Kaczmarek; Dylan Douglas
>>Cc: Ben Ebert; Jay Mairs; Nainesh Solanki; Sergio Alvarez; Ty Heath
>>Subject: RE: search
>>
>>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:55:57 BST

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